liuyu %!s(int64=5) %!d(string=hai) anos
pai
achega
5eb82b6fd0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {