lrf402788946 %!s(int64=5) %!d(string=hai) anos
pai
achega
306444da5f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/service/dock.js

+ 2 - 2
app/service/dock.js

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