add deleteTenant method to user service
This commit is contained in:
parent
8096200886
commit
25344faca0
|
@ -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) {
|
async validateEmail(email: string) {
|
||||||
let repo1 = this.userModel;
|
let repo1 = this.userModel;
|
||||||
return new Promise<User>((resolve, reject) => {
|
return new Promise<User>((resolve, reject) => {
|
||||||
|
|
Loading…
Reference in New Issue