aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-19 22:32:57 +0100
committerMohamed Bassem <me@mbassem.com>2024-04-20 00:05:31 +0100
commit4c589d4c89f0fab97a14f02095e75335f08cc38e (patch)
tree659ceffb892733df47fc849f6f894eb6c0d8aa02 /packages/trpc
parent4402e6f04170cbb0613d35fe94471162253e91b2 (diff)
downloadkarakeep-4c589d4c89f0fab97a14f02095e75335f08cc38e.tar.zst
feature: Allow recrawling bookmarks without running inference jobs
Diffstat (limited to 'packages/trpc')
-rw-r--r--packages/trpc/routers/admin.ts2
1 files changed, 2 insertions, 0 deletions
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,
}),
),
);