fix: add routingKey '#' to getRabbitMQOptions so queues receive events

This commit is contained in:
Кирилл Осипков 2026-05-27 13:15:15 +03:00
parent 8f98bf8cae
commit 8f77be27a5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@erp/plugin-sdk",
"version": "1.1.1",
"version": "1.1.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {

View File

@ -8,6 +8,7 @@ export const getRabbitMQOptions = (queueName: string, url?: string): Microservic
queue: queueName,
exchange: 'system_events',
exchangeType: 'topic',
routingKey: '#',
queueOptions: {
durable: true, // Черга не зникає при перезавантаженні RabbitMQ
},