From 866a5e097727c42e467b48166f1c9eaa7aad94e6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 19 Aug 2025 09:26:01 +1000 Subject: [PATCH] Move quota notification to a sync delivery --- app/Models/Account.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index 88075ecba8..658b71babf 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -554,7 +554,9 @@ class Account extends BaseModel $nmo->company = $this->companies()->first(); $nmo->settings = $this->companies()->first()->settings; $nmo->to_user = $this->companies()->first()->owner(); - NinjaMailerJob::dispatch($nmo, true); + // NinjaMailerJob::dispatch($nmo, true); + + (new NinjaMailerJob($nmo, true))->handle(); Cache::put("throttle_notified:{$this->key}", true, 60 * 60 * 24);