diff --git a/src/server/api/endpoints/admin/emoji/add.ts b/src/server/api/endpoints/admin/emoji/add.ts index 09e142b17e..533dd75af9 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 842ca8924d..d0c2e6dafc 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