mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Fixes for quotas
This commit is contained in:
parent
ec144b4181
commit
489476feeb
@ -254,7 +254,7 @@ class NinjaMailerJob implements ShouldQueue
|
|||||||
|
|
||||||
private function incrementEmailCounter(): void
|
private function incrementEmailCounter(): void
|
||||||
{
|
{
|
||||||
if(in_array($this->mailer, ['default','mailgun','postmark'])) {
|
if(in_array($this->nmo->settings->email_sending_method, ['default','mailgun','postmark'])) {
|
||||||
Cache::increment("email_quota".$this->company->account->key);
|
Cache::increment("email_quota".$this->company->account->key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ class Email implements ShouldQueue
|
|||||||
|
|
||||||
private function incrementEmailCounter(): void
|
private function incrementEmailCounter(): void
|
||||||
{
|
{
|
||||||
if(in_array($this->mailer, ['default','mailgun','postmark'])) {
|
if(in_array($this->email_object->settings->email_sending_method, ['default','mailgun','postmark'])) {
|
||||||
Cache::increment("email_quota".$this->company->account->key);
|
Cache::increment("email_quota".$this->company->account->key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user