From b6ad96a79b9cbc46aaa71ebdac07da8c45f05b24 Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Sat, 19 Apr 2025 04:20:26 +0000 Subject: [PATCH] enhancement(lint): Fix lint errors for src/modules/journey.ts Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/modules/journey.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/journey.ts b/src/modules/journey.ts index 58c6f9e..60f6868 100644 --- a/src/modules/journey.ts +++ b/src/modules/journey.ts @@ -131,9 +131,9 @@ export async function shipUpdatesCron(app: ModifiedApp) { for (const update of updates) { const entry = app.dbs.journey.get(update.project_id.toString()); if (!entry) continue; -let msg = null; -try { - msg = await app.client.chat.postMessage({ + let msg = null; + try { + msg = await app.client.chat.postMessage({ channel: `C08N1NWKEF4`, thread_ts: entry.root_message, reply_broadcast: true, @@ -155,9 +155,9 @@ try { }, ].filter(Boolean), }); -} catch(e) { - // please dont use bad img urls smh - msg = await app.client.chat.postMessage({ + } catch (e) { + // please dont use bad img urls smh + msg = await app.client.chat.postMessage({ channel: `C08N1NWKEF4`, thread_ts: entry.root_message, reply_broadcast: true, @@ -170,10 +170,10 @@ try { // TODO add the ping back text: `:tada: *New Update!*\n_${update.text}_ by <@${update.slack_id}>`, }, - } + }, ].filter(Boolean), }); -} + } entry.updates.push({ meta: update, created_at: Date.now(),