diff --git a/servicio-usuarios/src/users/users.service.ts b/servicio-usuarios/src/users/users.service.ts index dc2549d2..26ae3c95 100644 --- a/servicio-usuarios/src/users/users.service.ts +++ b/servicio-usuarios/src/users/users.service.ts @@ -196,6 +196,12 @@ export class UsersService { }); } + async deleteTenant(id: string) { + return this.userModel.findOneAndUpdate({ _id: id }, { status: '-1' }, { + new: true, + }); + } + async validateEmail(email: string) { let repo1 = this.userModel; return new Promise((resolve, reject) => {