From f7b31938159274443a288416fadf771c67640fba Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 22 Jun 2025 12:38:24 +0000 Subject: chore: More oxlint changes --- apps/workers/.oxlintrc.json | 5 +---- apps/workers/workers/crawlerWorker.ts | 2 +- apps/workers/workers/inference/tagging.ts | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) (limited to 'apps/workers') diff --git a/apps/workers/.oxlintrc.json b/apps/workers/.oxlintrc.json index 44a3dcef..79ba0255 100644 --- a/apps/workers/.oxlintrc.json +++ b/apps/workers/.oxlintrc.json @@ -3,10 +3,7 @@ "extends": [ "../../tooling/oxlint/oxlint-base.json" ], - "categories": { - "correctness": "warn" - }, - "env": { + "env": { "builtin": true, "commonjs": true }, diff --git a/apps/workers/workers/crawlerWorker.ts b/apps/workers/workers/crawlerWorker.ts index d92da208..f0e831c2 100644 --- a/apps/workers/workers/crawlerWorker.ts +++ b/apps/workers/workers/crawlerWorker.ts @@ -105,7 +105,7 @@ async function startBrowserInstance() { ); const webUrl = new URL(serverConfig.crawler.browserWebUrl); // We need to resolve the ip address as a workaround for https://github.com/puppeteer/puppeteer/issues/2242 - const { address: address } = await dns.promises.lookup(webUrl.hostname); + const { address } = await dns.promises.lookup(webUrl.hostname); webUrl.hostname = address; logger.info( `[Crawler] Successfully resolved IP address, new address: ${webUrl.toString()}`, diff --git a/apps/workers/workers/inference/tagging.ts b/apps/workers/workers/inference/tagging.ts index 35c366c7..5a01e2df 100644 --- a/apps/workers/workers/inference/tagging.ts +++ b/apps/workers/workers/inference/tagging.ts @@ -130,11 +130,11 @@ async function replaceTagsPlaceholders( const tags = (await api.tags.list()).tags; const tagsString = `[${tags.map((tag) => tag.name).join(", ")}]`; const aiTagsString = `[${tags - .filter((tag) => tag.numBookmarksByAttachedType.human ?? 0 == 0) + .filter((tag) => tag.numBookmarksByAttachedType.human ?? true) .map((tag) => tag.name) .join(", ")}]`; const userTagsString = `[${tags - .filter((tag) => tag.numBookmarksByAttachedType.human ?? 0 > 0) + .filter((tag) => tag.numBookmarksByAttachedType.human ?? false) .map((tag) => tag.name) .join(", ")}]`; -- cgit v1.2.3-70-g09d2