fix: transaction-history-user
This commit is contained in:
parent
cfca06ecc5
commit
8b5a5e86b6
|
@ -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