mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Change batch() to ->queue()
This commit is contained in:
parent
107ec59ebe
commit
65493c47a5
@ -176,7 +176,7 @@ class LoginController extends BaseController
|
||||
|
||||
LightLogs::create(new LoginSuccess())
|
||||
->increment()
|
||||
->batch();
|
||||
->queue();
|
||||
|
||||
$user = $this->guard()->user();
|
||||
|
||||
@ -249,7 +249,7 @@ class LoginController extends BaseController
|
||||
|
||||
LightLogs::create(new LoginFailure())
|
||||
->increment()
|
||||
->batch();
|
||||
->queue();
|
||||
|
||||
// SystemLogger::dispatch(
|
||||
// json_encode(['ip' => request()->getClientIp()]),
|
||||
|
@ -504,7 +504,7 @@ class CompanyController extends BaseController
|
||||
|
||||
LightLogs::create(new AccountDeleted())
|
||||
->increment()
|
||||
->batch();
|
||||
->queue();
|
||||
|
||||
} else {
|
||||
$company_id = $company->id;
|
||||
|
@ -170,7 +170,7 @@ class PostMarkController extends BaseController
|
||||
$request->input('MessageID')
|
||||
);
|
||||
|
||||
LightLogs::create($bounce)->batch();
|
||||
LightLogs::create($bounce)->queue();
|
||||
|
||||
SystemLogger::dispatch($request->all(), SystemLog::CATEGORY_MAIL, SystemLog::EVENT_MAIL_BOUNCED, SystemLog::TYPE_WEBHOOK_RESPONSE, $this->invitation->contact->client, $this->invitation->company);
|
||||
}
|
||||
@ -212,7 +212,7 @@ class PostMarkController extends BaseController
|
||||
$request->input('MessageID')
|
||||
);
|
||||
|
||||
LightLogs::create($spam)->batch();
|
||||
LightLogs::create($spam)->queue();
|
||||
|
||||
SystemLogger::dispatch($request->all(), SystemLog::CATEGORY_MAIL, SystemLog::EVENT_MAIL_SPAM_COMPLAINT, SystemLog::TYPE_WEBHOOK_RESPONSE, $this->invitation->contact->client, $this->invitation->company);
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ class PreviewController extends BaseController
|
||||
{
|
||||
LightLogs::create(new LivePreview())
|
||||
->increment()
|
||||
->batch();
|
||||
->queue();
|
||||
}
|
||||
|
||||
|
||||
|
@ -68,7 +68,7 @@ class QueryLogging
|
||||
}
|
||||
|
||||
LightLogs::create(new DbQuery($request->method(), urldecode($request->url()), $count, $time, $ip))
|
||||
->batch();
|
||||
->queue();
|
||||
}
|
||||
|
||||
|
||||
|
@ -136,7 +136,7 @@ class CreateAccount
|
||||
|
||||
LightLogs::create(new AnalyticsAccountCreated())
|
||||
->increment()
|
||||
->batch();
|
||||
->queue();
|
||||
|
||||
|
||||
|
||||
|
@ -110,7 +110,7 @@ class NinjaMailerJob implements ShouldQueue
|
||||
->send($this->nmo->mailable);
|
||||
|
||||
LightLogs::create(new EmailSuccess($this->nmo->company->company_key))
|
||||
->batch();
|
||||
->queue();
|
||||
|
||||
/* Count the amount of emails sent across all the users accounts */
|
||||
Cache::increment($this->company->account->key);
|
||||
@ -279,7 +279,7 @@ class NinjaMailerJob implements ShouldQueue
|
||||
$job_failure->string_metric6 = substr($errors, 0, 150);
|
||||
|
||||
LightLogs::create($job_failure)
|
||||
->batch();
|
||||
->queue();
|
||||
}
|
||||
|
||||
public function failed($exception = null)
|
||||
|
@ -192,7 +192,7 @@ class SendRecurring implements ShouldQueue
|
||||
$job_failure->string_metric6 = $exception->getMessage();
|
||||
|
||||
LightLogs::create($job_failure)
|
||||
->batch();
|
||||
->queue();
|
||||
|
||||
nlog(print_r($exception->getMessage(), 1));
|
||||
}
|
||||
|
@ -1832,7 +1832,7 @@ class Import implements ShouldQueue
|
||||
$job_failure->string_metric6 = $exception->getMessage();
|
||||
|
||||
LightLogs::create($job_failure)
|
||||
->batch();
|
||||
->queue();
|
||||
|
||||
info(print_r($exception->getMessage(), 1));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user