Merge branch 'development' into 'devops-staging'
Development See merge request empatnusabangsa/ppob/ppob-backend!106
This commit is contained in:
commit
ece11e8fe3
|
@ -571,8 +571,13 @@ export class UsersService {
|
||||||
const dataUser = await this.usersRepository.findOneOrFail(id);
|
const dataUser = await this.usersRepository.findOneOrFail(id);
|
||||||
const supervisorUser = await this.findExist(user);
|
const supervisorUser = await this.findExist(user);
|
||||||
|
|
||||||
|
|
||||||
if (status == 'approved') {
|
if (status == 'approved') {
|
||||||
|
if (supervisorUser.roles.name == 'Admin') {
|
||||||
|
dataUser.status_approval = 'Done';
|
||||||
|
}else {
|
||||||
dataUser.status_approval = supervisorUser.superior.id;
|
dataUser.status_approval = supervisorUser.superior.id;
|
||||||
|
}
|
||||||
} else if (status == 'resend') {
|
} else if (status == 'resend') {
|
||||||
dataUser.is_rejected = false;
|
dataUser.is_rejected = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user