Set news article update date on creation
This commit is contained in:
parent
dc4ea5c0d6
commit
c0a9ff5959
@ -89,7 +89,8 @@ const News = {
|
||||
content: body.content,
|
||||
tags: body.tags || '',
|
||||
user_id: user.id,
|
||||
created_at: new Date()
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
}
|
||||
|
||||
let result = await Models.News.query().insert(article)
|
||||
@ -132,7 +133,7 @@ const News = {
|
||||
},
|
||||
author: {
|
||||
name: 'Icy Network',
|
||||
email: 'icynet@lunasqu.ee',
|
||||
email: 'icynet@icynet.eu',
|
||||
link: config.server.domain
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user