guhongwei %!s(int64=3) %!d(string=hai) anos
pai
achega
e4623d784a
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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();
   }
 }