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",
|
"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": {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue