Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임태민
/
Mapmory
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
임태민
2021-06-04 15:42:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c057cbfd4ef7c60363651d65a88d4b0413de983e
c057cbfd
1 parent
69122efe
Update Post.js
- Post 생성 시간이 접속시간으로 고정되어 있던 오류를 발견하여 고쳤습니다.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
models/Post.js
models/Post.js
View file @
c057cbf
...
...
@@ -7,7 +7,7 @@ var postSchema = mongoose.Schema({
address
:{
type
:
String
,
required
:[
true
,
'address is required!'
]},
body
:{
type
:
String
,
required
:[
true
,
'Content is required!'
]},
author
:{
type
:
mongoose
.
Schema
.
Types
.
ObjectId
,
ref
:
'user'
,
required
:
true
},
createdAt
:{
type
:
Date
,
default
:
Date
.
now
()
},
createdAt
:{
type
:
Date
,
default
:
Date
.
now
},
updatedAt
:{
type
:
Date
}
});
...
...
Please
register
or
login
to post a comment