aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workers')
-rw-r--r--apps/workers/crawlerWorker.ts2
-rw-r--r--apps/workers/workerUtils.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts
index 9401088e..a40cbe53 100644
--- a/apps/workers/crawlerWorker.ts
+++ b/apps/workers/crawlerWorker.ts
@@ -160,7 +160,7 @@ export class CrawlerWorker {
try {
logger.info("[crawler] Loading adblocker ...");
globalBlocker = await PuppeteerBlocker.fromPrebuiltFull(fetch, {
- path: path.join(os.tmpdir(), "hoarder_adblocker.bin"),
+ path: path.join(os.tmpdir(), "karakeep_adblocker.bin"),
read: fs.readFile,
write: fs.writeFile,
});
diff --git a/apps/workers/workerUtils.ts b/apps/workers/workerUtils.ts
index 59a5a780..dc846177 100644
--- a/apps/workers/workerUtils.ts
+++ b/apps/workers/workerUtils.ts
@@ -1,6 +1,6 @@
import { eq } from "drizzle-orm";
-import { db, HoarderDBTransaction } from "@karakeep/db";
+import { db, KarakeepDBTransaction } from "@karakeep/db";
import { assets, AssetTypes, bookmarks } from "@karakeep/db/schema";
type DBAssetType = typeof assets.$inferInsert;
@@ -8,7 +8,7 @@ type DBAssetType = typeof assets.$inferInsert;
export async function updateAsset(
oldAssetId: string | undefined,
newAsset: DBAssetType,
- txn: HoarderDBTransaction,
+ txn: KarakeepDBTransaction,
) {
if (oldAssetId) {
await txn.delete(assets).where(eq(assets.id, oldAssetId));