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();
   }
 }