From 8ebce8e80985838eafcb6c974b4c78977d32ee74 Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 03:40:36 +0000 Subject: [PATCH] enhancement(lint): Fix lint errors for src/commands/home.ts Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/commands/home.ts | 50 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/commands/home.ts b/src/commands/home.ts index 7d61723..ab786c5 100644 --- a/src/commands/home.ts +++ b/src/commands/home.ts @@ -88,31 +88,31 @@ export default class AppHome implements Command { { type: "section", elements: app.dbs.anondm - //@ts-ignore - .get(usersInDb.find((e) => bcrypt.compareSync(event.user, e))) - .messages.filter((e) => { - try { - EncryptedJsonDb.decrypt( - e, - //@ts-ignore - `${event.user}_` + process.env.ANONDM_PASSWORD, - ); - return true; - } catch (e) { - return false; - } - }) - .map((e) => { - // map to a slack element block - return { - type: "section", - text: { - type: "mrkdwn", - text: `> :email_unread: New Message`, - }, - }; - }) - } + //@ts-ignore + .get(usersInDb.find((e) => bcrypt.compareSync(event.user, e))) + .messages.filter((e) => { + try { + EncryptedJsonDb.decrypt( + e, + //@ts-ignore + `${event.user}_` + process.env.ANONDM_PASSWORD, + ); + return true; + } catch (e) { + return false; + } + }) + .map((e) => { + // map to a slack element block + return { + type: "section", + text: { + type: "mrkdwn", + text: `> :email_unread: New Message`, + }, + }; + }), + }, ]; //@ts-ignore if (process.env.MY_USER_ID !== event.user)