Commit 24bcd78a authored by Рахметова Альбина's avatar Рахметова Альбина

Merge branch '#16' into 'dev'

changed model of post

See merge request !16
parents 1db270d5 14b2d3d8
...@@ -12,7 +12,8 @@ const PostsSchema: Schema = new Schema<IPost>({ ...@@ -12,7 +12,8 @@ const PostsSchema: Schema = new Schema<IPost>({
}, },
image: String, image: String,
datetime: { datetime: {
type: Date type: Date,
default: Date.now()
} }
}, { }, {
versionKey: false versionKey: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment