Skip to content

Commit

Permalink
fix: wrong usage of multiple routing key for one queue
Browse files Browse the repository at this point in the history
  • Loading branch information
kasir-barati committed Oct 7, 2024
1 parent 95473b9 commit 1ae4732
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,7 @@ export class RabbitmqService {
@RabbitRPC({
exchange: TOPIC_EXCHANGE,
queue: AUDIT_LOG_QUEUE,
routingKey: CREATED_ROUTING_KEY,
})
@RabbitRPC({
exchange: TOPIC_EXCHANGE,
queue: AUDIT_LOG_QUEUE,
routingKey: UPDATED_ROUTING_KEY,
})
@RabbitRPC({
exchange: TOPIC_EXCHANGE,
queue: AUDIT_LOG_QUEUE,
routingKey: DELETED_ROUTING_KEY,
routingKey: [CREATED_ROUTING_KEY, UPDATED_ROUTING_KEY, DELETED_ROUTING_KEY],
})
async log(@RabbitPayload() payload: any) {
this.logger.log('Logging info...');
Expand Down

0 comments on commit 1ae4732

Please sign in to comment.