drudge / mongoose-timestamp

Adds createdAt and updatedAt date attributes that get auto-assigned to the most recent create/update timestamp
Other
308 stars 64 forks source link

Bug #11

Closed jonstorer closed 10 years ago

jonstorer commented 10 years ago

I believe that line 31 should be using createdAt the variable, not "createdAt" the string

 if (schema.path('createdAt')) {