|
@@ -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);
|