fix: update Redis connection to include username as password fallback

This commit is contained in:
Giuseppe Raffa
2026-04-14 10:07:38 +02:00
parent 4fb44cb9a7
commit a24accb04b

View File

@@ -49,7 +49,7 @@ export async function initQueue() {
host: redisUrl.hostname,
port: parseInt(redisUrl.port || '6379'),
db: parseInt(redisUrl.pathname?.replace('/', '') || '2'),
password: redisUrl.password || undefined,
password: redisUrl.password || redisUrl.username || undefined,
maxRetriesPerRequest: null, // Required by BullMQ
enableReadyCheck: false,
});