Set news article update date on creation

This commit is contained in:
Evert Prants 2018-02-09 14:01:00 +02:00
parent dc4ea5c0d6
commit c0a9ff5959
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 4 additions and 3 deletions

View File

@ -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
}
})