From c0a9ff59596ac54034448a03708c8812376ed9ac Mon Sep 17 00:00:00 2001 From: Evert Date: Fri, 9 Feb 2018 14:01:00 +0200 Subject: [PATCH] Set news article update date on creation --- server/api/news.js | 5 +++-- views/layout.pug | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/api/news.js b/server/api/news.js index 41d88da..e70f914 100644 --- a/server/api/news.js +++ b/server/api/news.js @@ -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 } }) diff --git a/views/layout.pug b/views/layout.pug index 8dfeb4f..ca0818d 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -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 | ยท