From b7a15bf6ca2c81ac67b5ba6f562d6462f23b4c79 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 4 Nov 2018 10:42:16 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B5=B5=E6=96=87=E5=AD=97=E3=82=92=E4=BD=9C?= =?UTF-8?q?=E6=88=90=E3=81=97=E3=81=9F/=E6=9B=B4=E6=96=B0=E3=81=97?= =?UTF-8?q?=E3=81=9F=E6=99=82=E3=81=ABupdateAt=E3=82=92=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api/endpoints/admin/emoji/add.ts | 1 + src/server/api/endpoints/admin/emoji/update.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/server/api/endpoints/admin/emoji/add.ts b/src/server/api/endpoints/admin/emoji/add.ts index 09e142b17..533dd75af 100644 --- a/src/server/api/endpoints/admin/emoji/add.ts +++ b/src/server/api/endpoints/admin/emoji/add.ts @@ -28,6 +28,7 @@ export const meta = { export default define(meta, (ps) => new Promise(async (res, rej) => { await Emoji.insert({ + updatedAt: new Date(), name: ps.name, host: null, aliases: ps.aliases, diff --git a/src/server/api/endpoints/admin/emoji/update.ts b/src/server/api/endpoints/admin/emoji/update.ts index 842ca8924..d0c2e6daf 100644 --- a/src/server/api/endpoints/admin/emoji/update.ts +++ b/src/server/api/endpoints/admin/emoji/update.ts @@ -39,6 +39,7 @@ export default define(meta, (ps) => new Promise(async (res, rej) => { await Emoji.update({ _id: emoji._id }, { $set: { + updatedAt: new Date(), name: ps.name, aliases: ps.aliases, url: ps.url