fix: transaction-history-user
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user