Skip to content
Browse files

Updated modified to also have a default value

  • Loading branch information...
1 parent 9988e0e commit 2e8ecfd73c3181b4146b6ca2d208e1010df2c4af @spatical spatical committed May 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.js
View
3 index.js
@@ -7,7 +7,8 @@ module.exports = exports = function createdModifiedPlugin (schema, options) {
type: Date,
'default': Date.now
}, modified: {
- type: Date
+ type: Date,
+ 'default': Date.now
}
});

0 comments on commit 2e8ecfd

Please sign in to comment.
Something went wrong with that request. Please try again.