diff --git a/src/users/users.service.ts b/src/users/users.service.ts index fda2885..fcfc03b 100644 --- a/src/users/users.service.ts +++ b/src/users/users.service.ts @@ -573,9 +573,8 @@ export class UsersService { if (status == 'approved') { - dataUser.status_approval = supervisorUser.superior.id; if (supervisorUser.roles.name == 'Admin') { - supervisorUser.superior.id; + dataUser.status_approval = 'Done'; }else { dataUser.status_approval = supervisorUser.superior.id; }