From 4fb1c07a2514fadf61329cbf3e506902032cf3d3 Mon Sep 17 00:00:00 2001 From: Samuel Goulart Date: Wed, 19 Aug 2026 15:43:56 -0300 Subject: [PATCH] fix(rabbitmq): connect to the configured vhost setCredentials wasn't receiving virtualHost, so connections landed on the default RabbitMQ vhost instead of the configured one. Any exchange that happens to share a name on both vhosts will accept publishes without error while the message never reaches the intended queue. Co-Authored-By: Claude Sonnet 5 --- src/main/util/get-rabbitmq-connection.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/util/get-rabbitmq-connection.ts b/src/main/util/get-rabbitmq-connection.ts index b7c99fd..0c9669b 100644 --- a/src/main/util/get-rabbitmq-connection.ts +++ b/src/main/util/get-rabbitmq-connection.ts @@ -9,7 +9,8 @@ export function getRabbitmqConnection() { user: RABBIT.USER, password: RABBIT.PASSWORD, host: RABBIT.HOST, - port: RABBIT.PORT + port: RABBIT.PORT, + virtualHost: RABBIT.VIRTUAL_HOST }) .start(); }