fix: add routingKey '#' to getRabbitMQOptions so queues receive events
This commit is contained in:
parent
8f98bf8cae
commit
ff39034a14
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ export const getRabbitMQOptions = (queueName: string, url?: string): Microservic
|
|||
queue: queueName,
|
||||
exchange: 'system_events',
|
||||
exchangeType: 'topic',
|
||||
routingKey: '#',
|
||||
queueOptions: {
|
||||
durable: true, // Черга не зникає при перезавантаженні RabbitMQ
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue