Skip to content

Commit

Permalink
refactor: adjust columns in latest wallet aggregate (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored Nov 12, 2024
1 parent 9340474 commit baaf2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/Addresses/Aggregates/LatestWalletAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public function aggregate(): ?Wallet
)
->leftJoin('transactions', function ($join) {
$join->on('wallets.public_key', '=', 'transactions.sender_public_key')
->orOn('wallets.address', '=', 'transactions.recipient_id');
->orOn('wallets.address', '=', 'transactions.recipient_address');
})
->whereNotNull('transactions.sender_public_key')
->whereNotNull('transactions.recipient_id')
->whereNotNull('transactions.recipient_address')
->groupBy('wallets.address')
->orderBy('timestamp', 'desc')
->limit(1);
Expand Down

0 comments on commit baaf2d4

Please sign in to comment.