Move quota notification to a sync delivery

This commit is contained in:
David Bomba 2025-08-19 09:26:01 +10:00
parent 8c621972b9
commit 866a5e0977
1 changed files with 3 additions and 1 deletions

View File

@ -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);