mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 10:04:35 -04:00
Clean up for bank integration bulk actions
This commit is contained in:
parent
d52f06c05c
commit
641cda79af
@ -472,10 +472,12 @@ class BankIntegrationController extends BaseController
|
|||||||
|
|
||||||
$ids = request()->input('ids');
|
$ids = request()->input('ids');
|
||||||
|
|
||||||
$bank_integrations = BankIntegration::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get();
|
$bank_integrations = BankIntegration::withTrashed()->whereIn('id', $this->transformKeys($ids))
|
||||||
|
->company()
|
||||||
|
->cursor()
|
||||||
|
->each(function ($bank_integration, $key) use ($action) {
|
||||||
|
|
||||||
$bank_integrations->each(function ($bank_integration, $key) use ($action) {
|
$this->bank_integration_repo->{$action}($bank_integration);
|
||||||
$this->bank_integration_repo->{$action}($bank_integration);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/* Need to understand which permission are required for the given bulk action ie. view / edit */
|
/* Need to understand which permission are required for the given bulk action ie. view / edit */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user