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
|
||||
}
|
||||
})
|
||||
|
@ -92,7 +92,7 @@ html
|
||||
//FOOTER
|
||||
footer.container.mb-4
|
||||
p
|
||||
|© 2017-2018 Icy Network
|
||||
|© 2017 - 2018 Icy Network
|
||||
span.float-sm-right.ml-4
|
||||
a(href="/docs/terms-of-service") Terms
|
||||
| ·
|
||||
|
Reference in New Issue
Block a user