guhongwei 4 роки тому
батько
коміт
c32cf3108b
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      app/service/dock.js

+ 2 - 2
app/service/dock.js

@@ -272,7 +272,7 @@ class ChatService extends CrudService {
   }
   }
   async update({ id }, data) {
   async update({ id }, data) {
     const arr = await this.model.findById(id);
     const arr = await this.model.findById(id);
-    const bool = _.isEqual(data.file_path, arr.file_path);
+    const bool = _.isEqual(data.videodata, arr.videodata);
     if (!bool) {
     if (!bool) {
       // TODO MQ
       // TODO MQ
       const { mq } = this.ctx;
       const { mq } = this.ctx;
@@ -281,7 +281,7 @@ class ChatService extends CrudService {
         const parm = {
         const parm = {
           durable: true,
           durable: true,
         };
         };
-        await mq.fanout(exchange, id, data.file_path, parm);
+        await mq.fanout(exchange, id, data.videodata, parm);
       }
       }
     }
     }
     const res = await this.model.update({ _id: ObjectId(id) }, data);
     const res = await this.model.update({ _id: ObjectId(id) }, data);