lrf hace 7 meses
padre
commit
0c0ec8e64d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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) {
   async sendMsg(@Body() body: object) {
     const target = get(body, 'target');
     const target = get(body, 'target');
     const userType = get(body, 'userType');
     const userType = get(body, 'userType');
-    const data_id = get(body, 'data_id');
+    const content = get(body, 'content');
     let ex;
     let ex;
     if (userType === MessageUserType.ADMIN) {
     if (userType === MessageUserType.ADMIN) {
       ex = this.mqService.system.ex;
       ex = this.mqService.system.ex;
     } else if (userType === MessageUserType.USER) {
     } else if (userType === MessageUserType.USER) {
       ex = this.mqService.user.ex;
       ex = this.mqService.user.ex;
     }
     }
-    return this.mqService.publish(ex, target, data_id);
+    return this.mqService.publish(ex, target, content);
   }
   }
 }
 }