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