diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-06-22 12:38:24 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-06-22 12:38:24 +0000 |
| commit | f7b31938159274443a288416fadf771c67640fba (patch) | |
| tree | c98793a22d92583f62ee08a4bba47bb29f0012d0 /apps/workers | |
| parent | d5e2973dce617f451e4eb07491b3a6874ea6ca47 (diff) | |
| download | karakeep-f7b31938159274443a288416fadf771c67640fba.tar.zst | |
chore: More oxlint changes
Diffstat (limited to 'apps/workers')
| -rw-r--r-- | apps/workers/.oxlintrc.json | 5 | ||||
| -rw-r--r-- | apps/workers/workers/crawlerWorker.ts | 2 | ||||
| -rw-r--r-- | apps/workers/workers/inference/tagging.ts | 4 |
3 files changed, 4 insertions, 7 deletions
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(", ")}]`; |
