Remove having clause for #2306

This commit is contained in:
James Cole 2019-06-12 05:39:02 +02:00
parent 5f768a0525
commit 6fdfa722dd
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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;