liuyu 4 years ago
parent
commit
8deeb0cdd5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/room.js

+ 1 - 1
app/service/room.js

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