mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
reduce queue job statement process qty
This commit is contained in:
@@ -22,6 +22,7 @@ use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use DateTime;
|
||||
use App\Models\StatementTransaction;
|
||||
|
||||
class BankStatementController extends Controller
|
||||
{
|
||||
@@ -88,7 +89,9 @@ class BankStatementController extends Controller
|
||||
|
||||
public function rerun()
|
||||
{
|
||||
CreateBankStatementTransactionOwners::dispatch();
|
||||
foreach (StatementTransaction::doesntMapStatement()->get()->chunk(30) as $key => $transaction) {
|
||||
CreateBankStatementTransactionOwners::dispatch($transaction);
|
||||
}
|
||||
return redirect()->back()->with('success', 'Rerun triggered successfully');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user