aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc/routers/admin.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/trpc/routers/admin.ts')
-rw-r--r--packages/trpc/routers/admin.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/trpc/routers/admin.ts b/packages/trpc/routers/admin.ts
index 5e169857..2935f2e8 100644
--- a/packages/trpc/routers/admin.ts
+++ b/packages/trpc/routers/admin.ts
@@ -11,7 +11,6 @@ import {
OpenAIQueue,
SearchIndexingQueue,
TidyAssetsQueue,
- triggerReprocessingFixMode,
triggerSearchReindex,
VideoWorkerQueue,
WebhookQueue,
@@ -238,7 +237,14 @@ export const adminAppRouter = router({
},
});
- await Promise.all(bookmarkIds.map((b) => triggerReprocessingFixMode(b.id)));
+ await Promise.all(
+ bookmarkIds.map((b) =>
+ AssetPreprocessingQueue.enqueue({
+ bookmarkId: b.id,
+ fixMode: true,
+ }),
+ ),
+ );
}),
reRunInferenceOnAllBookmarks: adminProcedure
.input(