From d75c7eae1ea3a235b235d6f21109b4e8a1201342 Mon Sep 17 00:00:00 2001 From: Cyrille Derche Date: Wed, 13 Nov 2024 16:56:45 +0100 Subject: [PATCH] remove bigint stringify --- src/rabbitmq.service.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/rabbitmq.service.ts b/src/rabbitmq.service.ts index fe76d84..415cf7a 100644 --- a/src/rabbitmq.service.ts +++ b/src/rabbitmq.service.ts @@ -19,9 +19,6 @@ export class RabbitMQService implements OnModuleInit { async emitEvent(queue: string, event: string, data: any) { try { const payload = { data }; - // const payload = JSON.stringify({ data }, (_, value) => - // typeof value === 'bigint' ? value.toString() : value, - // ); RabbitMQ.publish(queue, event, payload); this.logger.log(`Event sent to ${queue}:`, payload); } catch (error) {