liuyu преди 4 години
родител
ревизия
8deeb0cdd5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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: {