diff --git a/packages/api/src/balance/balance.service.ts b/packages/api/src/balance/balance.service.ts index 5785c04d79..e70626bd5b 100644 --- a/packages/api/src/balance/balance.service.ts +++ b/packages/api/src/balance/balance.service.ts @@ -63,9 +63,6 @@ export class BalanceService { }, select: { balance: true, - // We need this two other fields for the `where`. - address: true, - tokenAddress: true, }, order: { blockNumber: "DESC", @@ -87,8 +84,6 @@ 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",