From 4c589d4c89f0fab97a14f02095e75335f08cc38e Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 19 Apr 2024 22:32:57 +0100 Subject: feature: Allow recrawling bookmarks without running inference jobs --- packages/trpc/routers/admin.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/trpc') diff --git a/packages/trpc/routers/admin.ts b/packages/trpc/routers/admin.ts index 8792f7ed..0a0af173 100644 --- a/packages/trpc/routers/admin.ts +++ b/packages/trpc/routers/admin.ts @@ -100,6 +100,7 @@ export const adminAppRouter = router({ .input( z.object({ crawlStatus: z.enum(["success", "failure", "all"]), + runInference: z.boolean(), }), ) .mutation(async ({ ctx, input }) => { @@ -116,6 +117,7 @@ export const adminAppRouter = router({ bookmarkIds.map((b) => LinkCrawlerQueue.add("crawl", { bookmarkId: b.id, + runInference: input.runInference, }), ), ); -- cgit v1.2.3-70-g09d2