From 98feefa2de5c198d2238b77d90566324460cc4a0 Mon Sep 17 00:00:00 2001 From: Maythee Anegboonlap Date: Mon, 2 Sep 2024 19:14:00 +0200 Subject: [PATCH] Remove queue name from config --- lib/config/queue.ts | 3 +-- lib/services/queue/qstash.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/config/queue.ts b/lib/config/queue.ts index ae93b80..6f0f575 100644 --- a/lib/config/queue.ts +++ b/lib/config/queue.ts @@ -20,8 +20,7 @@ export const getQueueConfig = (): { queue: QueueConfig } | null => { currentSigningKey: process.env .ACTIVITIES_QUEUE_CURRENT_SIGNING_KEY as string, nextSigningKey: process.env - .ACTIVITIES_QUEUE_NEXT_SIGNING_KEY as string, - queueName: process.env.ACTIVITIES_QUEUE_NAME as string + .ACTIVITIES_QUEUE_NEXT_SIGNING_KEY as string } } default: diff --git a/lib/services/queue/qstash.ts b/lib/services/queue/qstash.ts index 4a855a4..9eb5b8c 100644 --- a/lib/services/queue/qstash.ts +++ b/lib/services/queue/qstash.ts @@ -12,8 +12,7 @@ export const QStashConfig = z.object({ url: z.string().url(), token: z.string(), currentSigningKey: z.string(), - nextSigningKey: z.string(), - queueName: z.string() + nextSigningKey: z.string() }) export type QStashConfig = z.infer