lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
ffcc052269
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/service/creeperxtsread.js

+ 4 - 0
app/service/creeperxtsread.js

@@ -93,10 +93,14 @@ class CreeperxtsreadService extends CrudService {
   }
 
   async toMq(data) {
+    console.log('in toMq');
+    console.log(`data:${data.lenght}`);
     if (this.ctx.mq) {
       const exchange = 'service_count';
       const routerKey = 'nodes';
       const parm = { durable: true };
+      console.log(`exchange:${exchange}`);
+      console.log(`routerKey:${routerKey}`);
       await this.mq.fanout(exchange, routerKey, JSON.stringify(data), parm);
     }
   }