liuyu 5 년 전
부모
커밋
5eb82b6fd0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) {