fix: update Redis connection to include username as password fallback
This commit is contained in:
@@ -49,7 +49,7 @@ export async function initQueue() {
|
|||||||
host: redisUrl.hostname,
|
host: redisUrl.hostname,
|
||||||
port: parseInt(redisUrl.port || '6379'),
|
port: parseInt(redisUrl.port || '6379'),
|
||||||
db: parseInt(redisUrl.pathname?.replace('/', '') || '2'),
|
db: parseInt(redisUrl.pathname?.replace('/', '') || '2'),
|
||||||
password: redisUrl.password || undefined,
|
password: redisUrl.password || redisUrl.username || undefined,
|
||||||
maxRetriesPerRequest: null, // Required by BullMQ
|
maxRetriesPerRequest: null, // Required by BullMQ
|
||||||
enableReadyCheck: false,
|
enableReadyCheck: false,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user