guhongwei před 3 roky
rodič
revize
e4623d784a
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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();
   }
 }