From a5879706cd8c8195bb8e79cc802dd78fab612154 Mon Sep 17 00:00:00 2001 From: jgaribsin <16392336+jgaribsin@users.noreply.github.com> Date: Mon, 27 May 2024 02:08:57 -0600 Subject: [PATCH] #none removed progress check for message updates --- src/handlers/update.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/handlers/update.ts b/src/handlers/update.ts index 7846ef6..9efb010 100644 --- a/src/handlers/update.ts +++ b/src/handlers/update.ts @@ -16,15 +16,7 @@ const SUBSCRIBE_FOOTER = config.SUBSCRIBE_FOOTER; const DISCORD_INVITE = config.DISCORD_INVITE; const HD_COMPANION_LINK = config.HD_COMPANION_LINK; -let isUpdateInProgress = false; - export async function updateMessages() { - if (isUpdateInProgress) { - logger.info('Update already in progress, skipping', {type: 'update'}); - return; - } - isUpdateInProgress = true; - const start = Date.now(); const warStatusEmbeds = await warStatusPersistentMessage(); let {description} = warStatusEmbeds[warStatusEmbeds.length - 1].data; @@ -89,7 +81,6 @@ export async function updateMessages() { // eslint-disable-next-line node/no-unsupported-features/es-builtins await Promise.allSettled(updatePromises); - isUpdateInProgress = false; const taken = `${(Date.now() - start).toLocaleString()}ms`; logger.info(