From 9a8468906a1def0516de3ce491dd3060c0b75c5f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 24 Oct 2022 21:23:52 +1100 Subject: [PATCH] Return list of bank transactions --- app/Jobs/Bank/MatchBankTransactions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/Bank/MatchBankTransactions.php b/app/Jobs/Bank/MatchBankTransactions.php index 3aa53fc6f76d..666c6ac43cdc 100644 --- a/app/Jobs/Bank/MatchBankTransactions.php +++ b/app/Jobs/Bank/MatchBankTransactions.php @@ -111,7 +111,7 @@ class MatchBankTransactions implements ShouldQueue $this->matchExpense($input); } - return $this->bts; + return BankTransaction::whereIn('id', $this->bts); } @@ -165,7 +165,7 @@ class MatchBankTransactions implements ShouldQueue } - $this->bts->push($this->bt); + $this->bts->push($this->bt->id); return $this; } @@ -192,7 +192,7 @@ class MatchBankTransactions implements ShouldQueue $this->bt->status_id = BankTransaction::STATUS_CONVERTED; $this->bt->save(); - $this->bts->push($this->bt); + $this->bts->push($this->bt->id); return $this; }