From 08a5694e451218f1bcb2ad9eb42fd93250afbb96 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 9 Feb 2024 01:50:35 +0000 Subject: [refactor] Extract the bookmark model to be a high level model to support other type of bookmarks --- packages/shared/queues.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/shared') diff --git a/packages/shared/queues.ts b/packages/shared/queues.ts index a607131d..6a49d749 100644 --- a/packages/shared/queues.ts +++ b/packages/shared/queues.ts @@ -8,7 +8,7 @@ export const queueConnectionDetails = { // Link Crawler export const zCrawlLinkRequestSchema = z.object({ - linkId: z.string(), + bookmarkId: z.string(), url: z.string().url(), }); export type ZCrawlLinkRequest = z.infer; @@ -20,7 +20,7 @@ export const LinkCrawlerQueue = new Queue( // OpenAI Worker export const zOpenAIRequestSchema = z.object({ - linkId: z.string(), + bookmarkId: z.string(), }); export type ZOpenAIRequest = z.infer; -- cgit v1.2.3-70-g09d2