From 6d7c5f2b2e491b70c28142203b43f0b77afd05d1 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 16 Jul 2023 18:26:23 -0700 Subject: [PATCH] chore: :art: format --- packages/backend/src/queue/index.ts | 2 +- packages/backend/src/queue/processors/background/index.ts | 1 - packages/backend/src/queue/processors/system/verify-links.ts | 3 +-- packages/backend/src/services/fetch-rel-me.ts | 3 +-- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/backend/src/queue/index.ts b/packages/backend/src/queue/index.ts index 133a3b83c1..93aed7cb8b 100644 --- a/packages/backend/src/queue/index.ts +++ b/packages/backend/src/queue/index.ts @@ -582,7 +582,7 @@ export default function () { { repeat: { cron: "0 0 * * 0" }, removeOnComplete: true, - removeOnFail: true + removeOnFail: true, }, ); diff --git a/packages/backend/src/queue/processors/background/index.ts b/packages/backend/src/queue/processors/background/index.ts index 957c6c882e..6674f954b0 100644 --- a/packages/backend/src/queue/processors/background/index.ts +++ b/packages/backend/src/queue/processors/background/index.ts @@ -3,7 +3,6 @@ import indexAllNotes from "./index-all-notes.js"; const jobs = { indexAllNotes, - } as Record>>; export default function (q: Bull.Queue) { diff --git a/packages/backend/src/queue/processors/system/verify-links.ts b/packages/backend/src/queue/processors/system/verify-links.ts index 0be9c9ffde..66f025bf4f 100644 --- a/packages/backend/src/queue/processors/system/verify-links.ts +++ b/packages/backend/src/queue/processors/system/verify-links.ts @@ -48,8 +48,7 @@ export async function verifyLinks( await UserProfiles.update(user.userId, { fields: fieldsFinal, }); - } - catch (e: any) { + } catch (e: any) { logger.error(`Failed to update user ${user.userId} ${e}`); done(e); break; diff --git a/packages/backend/src/services/fetch-rel-me.ts b/packages/backend/src/services/fetch-rel-me.ts index bab4c684a7..c975603a08 100644 --- a/packages/backend/src/services/fetch-rel-me.ts +++ b/packages/backend/src/services/fetch-rel-me.ts @@ -9,8 +9,7 @@ export async function getRelMeLinks(url: string): Promise { ...dom.window.document.querySelectorAll("a[rel='me']"), ].map((a) => (a as HTMLAnchorElement).href); return relMeLinks; - } - catch { + } catch { return []; } }