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,
|
content: body.content,
|
||||||
tags: body.tags || '',
|
tags: body.tags || '',
|
||||||
user_id: user.id,
|
user_id: user.id,
|
||||||
created_at: new Date()
|
created_at: new Date(),
|
||||||
|
updated_at: new Date()
|
||||||
}
|
}
|
||||||
|
|
||||||
let result = await Models.News.query().insert(article)
|
let result = await Models.News.query().insert(article)
|
||||||
@ -132,7 +133,7 @@ const News = {
|
|||||||
},
|
},
|
||||||
author: {
|
author: {
|
||||||
name: 'Icy Network',
|
name: 'Icy Network',
|
||||||
email: 'icynet@lunasqu.ee',
|
email: 'icynet@icynet.eu',
|
||||||
link: config.server.domain
|
link: config.server.domain
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -92,7 +92,7 @@ html
|
|||||||
//FOOTER
|
//FOOTER
|
||||||
footer.container.mb-4
|
footer.container.mb-4
|
||||||
p
|
p
|
||||||
|© 2017-2018 Icy Network
|
|© 2017 - 2018 Icy Network
|
||||||
span.float-sm-right.ml-4
|
span.float-sm-right.ml-4
|
||||||
a(href="/docs/terms-of-service") Terms
|
a(href="/docs/terms-of-service") Terms
|
||||||
| ·
|
| ·
|
||||||
|
Reference in New Issue
Block a user