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 ff39034a14
2 changed files with 2 additions and 1 deletions

View File

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

View File

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