liuyu 5 năm trước cách đây
mục cha
commit
5eb82b6fd0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/user.js

+ 1 - 1
app/service/user.js

@@ -132,7 +132,7 @@ class UserService extends CrudService {
       throw new BusinessError(ErrorCode.USER_NOT_EXIST);
     }
     user.openid = data.openid;
-    await user.save();
+    return await user.save();
   }
 
   async findByOpenid(openid) {