aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-06-22 12:38:24 +0000
committerMohamed Bassem <me@mbassem.com>2025-06-22 12:38:24 +0000
commitf7b31938159274443a288416fadf771c67640fba (patch)
treec98793a22d92583f62ee08a4bba47bb29f0012d0 /apps/workers
parentd5e2973dce617f451e4eb07491b3a6874ea6ca47 (diff)
downloadkarakeep-f7b31938159274443a288416fadf771c67640fba.tar.zst
chore: More oxlint changes
Diffstat (limited to 'apps/workers')
-rw-r--r--apps/workers/.oxlintrc.json5
-rw-r--r--apps/workers/workers/crawlerWorker.ts2
-rw-r--r--apps/workers/workers/inference/tagging.ts4
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(", ")}]`;