fix: resend user
This commit is contained in:
		| @@ -571,12 +571,11 @@ export class UsersService { | ||||
|       const dataUser = await this.usersRepository.findOneOrFail(id); | ||||
|       const supervisorUser = await this.findExist(user); | ||||
|  | ||||
|  | ||||
|       if (status == 'approved') { | ||||
|         if (supervisorUser.roles.name == 'Admin') { | ||||
|           dataUser.status_approval = 'Done'; | ||||
|           dataUser.is_active = true; | ||||
|         }else { | ||||
|         } else { | ||||
|           dataUser.status_approval = supervisorUser.superior.id; | ||||
|         } | ||||
|       } else if (status == 'resend') { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user