Permalink
Browse files

Fixed updatedAt during instance-update

  • Loading branch information...
1 parent 49b234c commit d09d52dbc596f2657351d9c75556de272031541b mde committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
@@ -363,7 +363,7 @@ utils.mixin(model, new (function () {
}
else {
if (model.useTimestamps && data._saved) {
- this.updatedAt = new Date();
+ data.updatedAt = new Date();
}
return adapt.save.apply(adapt, [data, opts, callback]);
}

0 comments on commit d09d52d

Please sign in to comment.