From 4296e7f4d8de64a62dbf5e5d152b19ae25df489e Mon Sep 17 00:00:00 2001 From: adripo <26493496+adripo@users.noreply.github.com> Date: Mon, 21 Apr 2025 19:59:40 +0200 Subject: chore: rename missing files/conf from Hoarder to Karakeep (#1280) * refactor: Rename remaining project configuration from Hoarder to Karakeep * some fixes --------- Co-authored-by: Mohamed Bassem --- apps/workers/crawlerWorker.ts | 2 +- apps/workers/workerUtils.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/workers') 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)); -- cgit v1.2.3-70-g09d2