guhongwei 3 년 전
부모
커밋
e4623d784a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      app/service/user.js

+ 1 - 2
app/service/user.js

@@ -35,8 +35,7 @@ class UserService extends CrudService {
     const data = await this.model.findById(id);
     if (!data) throw new BusinessError(ErrorCode.USER_NOT_EXIST);
     data.password = { secret: password };
-    console.log(data);
-    // await data.save();
+    await data.save();
   }
 }