Change batch() to ->queue()

This commit is contained in:
David Bomba 2021-12-11 20:49:29 +11:00
parent 107ec59ebe
commit 65493c47a5
9 changed files with 12 additions and 12 deletions

View File

@ -176,7 +176,7 @@ class LoginController extends BaseController
LightLogs::create(new LoginSuccess()) LightLogs::create(new LoginSuccess())
->increment() ->increment()
->batch(); ->queue();
$user = $this->guard()->user(); $user = $this->guard()->user();
@ -249,7 +249,7 @@ class LoginController extends BaseController
LightLogs::create(new LoginFailure()) LightLogs::create(new LoginFailure())
->increment() ->increment()
->batch(); ->queue();
// SystemLogger::dispatch( // SystemLogger::dispatch(
// json_encode(['ip' => request()->getClientIp()]), // json_encode(['ip' => request()->getClientIp()]),

View File

@ -504,7 +504,7 @@ class CompanyController extends BaseController
LightLogs::create(new AccountDeleted()) LightLogs::create(new AccountDeleted())
->increment() ->increment()
->batch(); ->queue();
} else { } else {
$company_id = $company->id; $company_id = $company->id;

View File

@ -170,7 +170,7 @@ class PostMarkController extends BaseController
$request->input('MessageID') $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); 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') $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); SystemLogger::dispatch($request->all(), SystemLog::CATEGORY_MAIL, SystemLog::EVENT_MAIL_SPAM_COMPLAINT, SystemLog::TYPE_WEBHOOK_RESPONSE, $this->invitation->contact->client, $this->invitation->company);
} }

View File

@ -294,7 +294,7 @@ class PreviewController extends BaseController
{ {
LightLogs::create(new LivePreview()) LightLogs::create(new LivePreview())
->increment() ->increment()
->batch(); ->queue();
} }

View File

@ -68,7 +68,7 @@ class QueryLogging
} }
LightLogs::create(new DbQuery($request->method(), urldecode($request->url()), $count, $time, $ip)) LightLogs::create(new DbQuery($request->method(), urldecode($request->url()), $count, $time, $ip))
->batch(); ->queue();
} }

View File

@ -136,7 +136,7 @@ class CreateAccount
LightLogs::create(new AnalyticsAccountCreated()) LightLogs::create(new AnalyticsAccountCreated())
->increment() ->increment()
->batch(); ->queue();

View File

@ -110,7 +110,7 @@ class NinjaMailerJob implements ShouldQueue
->send($this->nmo->mailable); ->send($this->nmo->mailable);
LightLogs::create(new EmailSuccess($this->nmo->company->company_key)) LightLogs::create(new EmailSuccess($this->nmo->company->company_key))
->batch(); ->queue();
/* Count the amount of emails sent across all the users accounts */ /* Count the amount of emails sent across all the users accounts */
Cache::increment($this->company->account->key); Cache::increment($this->company->account->key);
@ -279,7 +279,7 @@ class NinjaMailerJob implements ShouldQueue
$job_failure->string_metric6 = substr($errors, 0, 150); $job_failure->string_metric6 = substr($errors, 0, 150);
LightLogs::create($job_failure) LightLogs::create($job_failure)
->batch(); ->queue();
} }
public function failed($exception = null) public function failed($exception = null)

View File

@ -192,7 +192,7 @@ class SendRecurring implements ShouldQueue
$job_failure->string_metric6 = $exception->getMessage(); $job_failure->string_metric6 = $exception->getMessage();
LightLogs::create($job_failure) LightLogs::create($job_failure)
->batch(); ->queue();
nlog(print_r($exception->getMessage(), 1)); nlog(print_r($exception->getMessage(), 1));
} }

View File

@ -1832,7 +1832,7 @@ class Import implements ShouldQueue
$job_failure->string_metric6 = $exception->getMessage(); $job_failure->string_metric6 = $exception->getMessage();
LightLogs::create($job_failure) LightLogs::create($job_failure)
->batch(); ->queue();
info(print_r($exception->getMessage(), 1)); info(print_r($exception->getMessage(), 1));