liuyu 5 anni fa
parent
commit
5eb82b6fd0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {