lrf402788946 4 rokov pred
rodič
commit
ffcc052269
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  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);
     }
   }