Merge branch 'development' into 'devops-staging'
fix: transaction-history-user See merge request empatnusabangsa/ppob/ppob-backend!84
This commit is contained in:
commit
71264c5b13
|
@ -880,12 +880,18 @@ export class TransactionService {
|
||||||
roleNumber = 1;
|
roleNumber = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
userBySupperior = await this.userService.findAllSubordinate(
|
const listUser = await this.userService.findAllSubordinate(
|
||||||
userData.id,
|
userData.id,
|
||||||
roleNumber,
|
roleNumber,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (listUser.length < 1) {
|
||||||
|
userBySupperior.push(userData.id);
|
||||||
} else {
|
} else {
|
||||||
userBySupperior.push(user);
|
userBySupperior = listUser;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
userBySupperior.push(userData.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseQuery = this.transactionRepository
|
const baseQuery = this.transactionRepository
|
||||||
|
|
Loading…
Reference in New Issue
Block a user