chore: 🎨 format
This commit is contained in:
parent
28e271ba77
commit
6d7c5f2b2e
4 changed files with 3 additions and 6 deletions
|
@ -582,7 +582,7 @@ export default function () {
|
||||||
{
|
{
|
||||||
repeat: { cron: "0 0 * * 0" },
|
repeat: { cron: "0 0 * * 0" },
|
||||||
removeOnComplete: true,
|
removeOnComplete: true,
|
||||||
removeOnFail: true
|
removeOnFail: true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import indexAllNotes from "./index-all-notes.js";
|
||||||
|
|
||||||
const jobs = {
|
const jobs = {
|
||||||
indexAllNotes,
|
indexAllNotes,
|
||||||
|
|
||||||
} as Record<string, Bull.ProcessCallbackFunction<Record<string, unknown>>>;
|
} as Record<string, Bull.ProcessCallbackFunction<Record<string, unknown>>>;
|
||||||
|
|
||||||
export default function (q: Bull.Queue) {
|
export default function (q: Bull.Queue) {
|
||||||
|
|
|
@ -48,8 +48,7 @@ export async function verifyLinks(
|
||||||
await UserProfiles.update(user.userId, {
|
await UserProfiles.update(user.userId, {
|
||||||
fields: fieldsFinal,
|
fields: fieldsFinal,
|
||||||
});
|
});
|
||||||
}
|
} catch (e: any) {
|
||||||
catch (e: any) {
|
|
||||||
logger.error(`Failed to update user ${user.userId} ${e}`);
|
logger.error(`Failed to update user ${user.userId} ${e}`);
|
||||||
done(e);
|
done(e);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -9,8 +9,7 @@ export async function getRelMeLinks(url: string): Promise<string[]> {
|
||||||
...dom.window.document.querySelectorAll("a[rel='me']"),
|
...dom.window.document.querySelectorAll("a[rel='me']"),
|
||||||
].map((a) => (a as HTMLAnchorElement).href);
|
].map((a) => (a as HTMLAnchorElement).href);
|
||||||
return relMeLinks;
|
return relMeLinks;
|
||||||
}
|
} catch {
|
||||||
catch {
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue