liuyu 5 years ago
parent
commit
5eb82b6fd0
1 changed files with 1 additions and 1 deletions
  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) {