Skip to content

Commit

Permalink
fix(e2e tests): add missing fields in select
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago Pittella authored and Santiago Pittella committed Apr 15, 2024
1 parent 7fa6341 commit d3916ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/api/src/balance/balance.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ export class BalanceService {
},
select: {
balance: true,
// We need this two other fields for the `where`.
address: true,
tokenAddress: true,
},
order: {
blockNumber: "DESC",
Expand All @@ -84,6 +87,8 @@ export class BalanceService {
const balancesQuery = this.balanceRepository.createQueryBuilder("balances");
balancesQuery.select("balances.address");
balancesQuery.addSelect("balances.balance");
balancesQuery.addSelect("balances.tokenAddress");
balancesQuery.addSelect("balances.blockNumber");
balancesQuery.innerJoin(
`(${latestBalancesQuery.getQuery()})`,
"latest_balances",
Expand Down

0 comments on commit d3916ed

Please sign in to comment.