Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -7,7 +7,7 @@ var postSchema = mongoose.Schema({ | ... | @@ -7,7 +7,7 @@ var postSchema = mongoose.Schema({ |
7 | address:{type:String, required:[true, 'address is required!']}, | 7 | address:{type:String, required:[true, 'address is required!']}, |
8 | body:{type:String, required:[true, 'Content is required!']}, | 8 | body:{type:String, required:[true, 'Content is required!']}, |
9 | author:{type:mongoose.Schema.Types.ObjectId, ref:'user', required:true}, | 9 | author:{type:mongoose.Schema.Types.ObjectId, ref:'user', required:true}, |
10 | - createdAt:{type:Date, default:Date.now()}, | 10 | + createdAt:{type:Date, default:Date.now}, |
11 | updatedAt:{type:Date} | 11 | updatedAt:{type:Date} |
12 | }); | 12 | }); |
13 | 13 | ... | ... |
-
Please register or login to post a comment