lrf 7 kuukautta sitten
vanhempi
commit
0c0ec8e64d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/controller/send.controller.ts

+ 2 - 2
src/controller/send.controller.ts

@@ -11,13 +11,13 @@ export class SendController {
   async sendMsg(@Body() body: object) {
     const target = get(body, 'target');
     const userType = get(body, 'userType');
-    const data_id = get(body, 'data_id');
+    const content = get(body, 'content');
     let ex;
     if (userType === MessageUserType.ADMIN) {
       ex = this.mqService.system.ex;
     } else if (userType === MessageUserType.USER) {
       ex = this.mqService.user.ex;
     }
-    return this.mqService.publish(ex, target, data_id);
+    return this.mqService.publish(ex, target, content);
   }
 }