lrf402788946 5 年之前
父节点
当前提交
306444da5f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/dock.js

+ 2 - 2
app/service/dock.js

@@ -40,8 +40,8 @@ class ChatService extends CrudService {
     if (!dock) {
     if (!dock) {
       throw new BusinessError('没有查询到该对接会');
       throw new BusinessError('没有查询到该对接会');
     }
     }
-    const user = await dock.apply.id(id);
-    if (user) {
+    const user = dock.apply.id(id);
+    if (!user) {
       throw new BusinessError('没有查询到用户的申请');
       throw new BusinessError('没有查询到用户的申请');
     }
     }
     user.status = status;
     user.status = status;