add prefix to queue

This commit is contained in:
Maidul Islam
2024-01-25 14:41:50 -05:00
committed by Akhil Mohan
parent 2436a572f0
commit 9a4f294749

View File

@@ -84,7 +84,7 @@ export const queueServiceFactory = (redisUrl: string) => {
queueContainer[name] = new Queue<TQueueJobTypes[T]["payload"], void, TQueueJobTypes[T]["name"]>(
name as string,
{ connection }
{ connection, prefix: '{myprefix}'}
);
workerContainer[name] = new Worker<
TQueueJobTypes[T]["payload"],