From 515a873d1b67727376d2b3d8ffdd54fcc99a553d Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Sun, 5 May 2024 23:03:15 -0400 Subject: [PATCH] Fix? --- src/equicordplugins/messageLoggerEnhanced/index.tsx | 2 +- src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/messageLoggerEnhanced/index.tsx b/src/equicordplugins/messageLoggerEnhanced/index.tsx index d1ba787d..65d2bb31 100644 --- a/src/equicordplugins/messageLoggerEnhanced/index.tsx +++ b/src/equicordplugins/messageLoggerEnhanced/index.tsx @@ -154,7 +154,7 @@ async function messageUpdateHandler(payload: MessageUpdatePayload) { ...(cachedMessage.editHistory ?? []), { content: cachedMessage.content, - timestamp: (new Date()).toISOString() + timestamp: new Date().toISOString() } ] }; diff --git a/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts b/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts index 7f47ff36..13e5a112 100644 --- a/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts +++ b/src/equicordplugins/messageLoggerEnhanced/utils/cleanUp.ts @@ -33,7 +33,7 @@ export function cleanupMessage(message: any, removeDetails: boolean = true): Log ret.guildId = ret.guild_id ?? getGuildIdByChannel(ret.channel_id); ret.embeds = (ret.embeds ?? []).map(cleanupEmbed); ret.deleted = ret.deleted ?? false; - ret.deletedTimestamp = ret.deleted ? (new Date()).toISOString() : undefined; + ret.deletedTimestamp = ret.deleted ? new Date().toISOString() : undefined; ret.editHistory = ret.editHistory ?? []; if (ret.type === 19) { ret.message_reference = message.message_reference || message.messageReference;