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) {
     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) {
       // TODO MQ
       const { mq } = this.ctx;
@@ -281,7 +281,7 @@ class ChatService extends CrudService {
         const parm = {
           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);