diff --git a/app/Http/Controllers/PreviewController.php b/app/Http/Controllers/PreviewController.php index 1722d0409e8f..03d49d7c5ae3 100644 --- a/app/Http/Controllers/PreviewController.php +++ b/app/Http/Controllers/PreviewController.php @@ -306,7 +306,7 @@ class PreviewController extends BaseController if (Ninja::isHosted()) { LightLogs::create(new LivePreview()) ->increment() - ->queue(); + ->batch(); } $response = Response::make($file_path, 200); diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index f5736c2587ee..8d7b11a8a5ee 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -69,7 +69,7 @@ class QueryLogging } LightLogs::create(new DbQuery($request->method(), substr(urldecode($request->url()),0,180), $count, $time, $ip)) - ->queue(); + ->batch(); } return $response; diff --git a/app/Jobs/Mail/NinjaMailerJob.php b/app/Jobs/Mail/NinjaMailerJob.php index b6895b3db4a8..1b9331d8adb9 100644 --- a/app/Jobs/Mail/NinjaMailerJob.php +++ b/app/Jobs/Mail/NinjaMailerJob.php @@ -123,7 +123,7 @@ class NinjaMailerJob implements ShouldQueue ->send($this->nmo->mailable); LightLogs::create(new EmailSuccess($this->nmo->company->company_key)) - ->queue(); + ->batch(); /* Count the amount of emails sent across all the users accounts */ Cache::increment($this->company->account->key); diff --git a/app/Jobs/PostMark/ProcessPostmarkWebhook.php b/app/Jobs/PostMark/ProcessPostmarkWebhook.php index 0dca3f00e727..2f79eb177478 100644 --- a/app/Jobs/PostMark/ProcessPostmarkWebhook.php +++ b/app/Jobs/PostMark/ProcessPostmarkWebhook.php @@ -217,7 +217,7 @@ class ProcessPostmarkWebhook implements ShouldQueue $this->request['MessageID'] ); - LightLogs::create($bounce)->queue(); + LightLogs::create($bounce)->batch(); SystemLogger::dispatch($this->request, SystemLog::CATEGORY_MAIL, SystemLog::EVENT_MAIL_BOUNCED, SystemLog::TYPE_WEBHOOK_RESPONSE, $this->invitation->contact->client, $this->invitation->company); @@ -263,7 +263,7 @@ class ProcessPostmarkWebhook implements ShouldQueue $this->request['MessageID'] ); - LightLogs::create($spam)->queue(); + LightLogs::create($spam)->batch(); SystemLogger::dispatch($this->request, SystemLog::CATEGORY_MAIL, SystemLog::EVENT_MAIL_SPAM_COMPLAINT, SystemLog::TYPE_WEBHOOK_RESPONSE, $this->invitation->contact->client, $this->invitation->company); diff --git a/app/Models/VendorContact.php b/app/Models/VendorContact.php index 72479d5a6939..6dd0cff534e6 100644 --- a/app/Models/VendorContact.php +++ b/app/Models/VendorContact.php @@ -45,10 +45,7 @@ class VendorContact extends Authenticatable implements HasLocalePreference 'hashed_id', ]; - protected $with = [ - // 'vendor', - // 'company' - ]; + protected $with = []; protected $casts = [ 'updated_at' => 'timestamp',