stringify

This commit is contained in:
CHIEFSOFT\ameye
2024-07-08 11:21:56 -04:00
parent b5c2076e9d
commit 92ed9e9cd3
+1 -1
View File
@@ -13,7 +13,7 @@ var ebroker = {
// console.log('THIS-> req.body -> ', req.body);
const kafka_topic ="NEW_OFFER_"+ message.assign_mode;
const kafkaConfig = new KafkaConfig();
const messages = [{ key: "offer", value: message }];
const messages = [{ key: "offer", value: message.stringify() }];
kafkaConfig.produce(kafka_topic, messages).then(r =>{
console.log('THIS->RET-> ',r);
} );