guhongwei 2 роки тому
батько
коміт
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();
   }
 }