임태민

Update Post.js

- Post 생성 시간이 접속시간으로 고정되어 있던 오류를 발견하여 고쳤습니다.
...@@ -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
......