mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Update email delays for quota notifications
This commit is contained in:
parent
a028456a09
commit
fd9972f18b
@ -554,7 +554,7 @@ class Account extends BaseModel
|
|||||||
$nmo->to_user = $this->companies()->first()->owner();
|
$nmo->to_user = $this->companies()->first()->owner();
|
||||||
NinjaMailerJob::dispatch($nmo, true);
|
NinjaMailerJob::dispatch($nmo, true);
|
||||||
|
|
||||||
Cache::put("throttle_notified:{$this->key}", true, 60 * 24);
|
Cache::put("throttle_notified:{$this->key}", true, 60 * 60 * 24);
|
||||||
|
|
||||||
if (config('ninja.notification.slack')) {
|
if (config('ninja.notification.slack')) {
|
||||||
$this->companies()->first()->notification(new EmailQuotaNotification($this))->ninja();
|
$this->companies()->first()->notification(new EmailQuotaNotification($this))->ninja();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user