Skip to content

Commit

Permalink
fixed wrong ordering on bank payments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lung committed Dec 12, 2023
1 parent 5346f48 commit 3af61fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BankPayment/BankPaymentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getLastBankPaymentId(Event $event): ?string
{
$bankPayment = $this->findOneBy(
['event' => $event],
['bank_id' => false],
[new Order('bank_id', Order::DIRECTION_DESC)],
);

return $bankPayment?->bankId;
Expand Down

0 comments on commit 3af61fd

Please sign in to comment.