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