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;
|
||||
}
|
||||
|
||||
userBySupperior = await this.userService.findAllSubordinate(
|
||||
const listUser = await this.userService.findAllSubordinate(
|
||||
userData.id,
|
||||
roleNumber,
|
||||
);
|
||||
|
||||
if (listUser.length < 1) {
|
||||
userBySupperior.push(userData.id);
|
||||
} else {
|
||||
userBySupperior.push(user);
|
||||
userBySupperior = listUser;
|
||||
}
|
||||
} else {
|
||||
userBySupperior.push(userData.id);
|
||||
}
|
||||
|
||||
const baseQuery = this.transactionRepository
|
||||
|
|
Loading…
Reference in New Issue
Block a user