From 6fdfa722ddfa76b771bafca5e0070cc7c0c2fd98 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 12 Jun 2019 05:39:02 +0200 Subject: [PATCH] Remove having clause for #2306 --- app/Console/Commands/Correction/DeleteEmptyJournals.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Console/Commands/Correction/DeleteEmptyJournals.php b/app/Console/Commands/Correction/DeleteEmptyJournals.php index 004c1f91ea..0932efe932 100644 --- a/app/Console/Commands/Correction/DeleteEmptyJournals.php +++ b/app/Console/Commands/Correction/DeleteEmptyJournals.php @@ -95,7 +95,6 @@ class DeleteEmptyJournals extends Command { $set = Transaction ::whereNull('deleted_at') - ->having('the_count', '!=', '2') ->groupBy('transactions.transaction_journal_id') ->get([DB::raw('COUNT(transactions.transaction_journal_id) as the_count'), 'transaction_journal_id']); $total = 0;