aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/workers/openaiWorker.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/workers/openaiWorker.ts b/apps/workers/openaiWorker.ts
index f8a775e6..64e36b82 100644
--- a/apps/workers/openaiWorker.ts
+++ b/apps/workers/openaiWorker.ts
@@ -20,6 +20,7 @@ import { buildImagePrompt, buildTextPrompt } from "@hoarder/shared/prompts";
import {
OpenAIQueue,
triggerSearchReindex,
+ triggerWebhook,
zOpenAIRequestSchema,
} from "@hoarder/shared/queues";
@@ -440,6 +441,9 @@ async function runOpenAI(job: DequeuedJob<ZOpenAIRequest>) {
await connectTags(bookmarkId, tags, bookmark.userId);
+ // Trigger a webhook
+ await triggerWebhook(bookmarkId, "ai tagged");
+
// Update the search index
await triggerSearchReindex(bookmarkId);
}