liuyu il y a 4 ans
Parent
commit
8deeb0cdd5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/service/room.js

+ 1 - 1
app/service/room.js

@@ -143,7 +143,7 @@ class RoomService extends CrudService {
       if (result) {
       if (result) {
         const { mq } = this.ctx;
         const { mq } = this.ctx;
         if (mq) {
         if (mq) {
-          const exchange = 'switch_shmai_' + result.id;
+          const exchange = 'switch_shmai_' + id;
           const parm = {
           const parm = {
             durable: true,
             durable: true,
             headers: {
             headers: {