Skip to content

Commit 55f9e37

Browse files
committed
fix(app): update Redis URL parsing to include authentication decoding for BullMQ
1 parent 2d43a91 commit 55f9e37

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/backend/src/app.module.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ import { EXPORT_INVOICE_QUEUE } from './infrastructure/queue/export-queue.servic
3838

3939
const config = validateConfig();
4040

41-
// Parseamos REDIS_URL → host + port para BullMQ
42-
// Formato esperado: redis://localhost:6379
41+
// Parseamos REDIS_URL → host + port + auth para BullMQ
4342
const redisUrl = new URL(config.REDIS_URL);
4443

4544
/**
@@ -111,7 +110,7 @@ const bullBoardModules =
111110
host: redisUrl.hostname,
112111
port: Number(redisUrl.port) || 6379,
113112
username: redisUrl.username || undefined,
114-
password: redisUrl.password || undefined,
113+
password: decodeURIComponent(redisUrl.password) || undefined,
115114
},
116115
}),
117116

0 commit comments

Comments
 (0)