1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Fixes for quotas

This commit is contained in:
David Bomba 2024-08-10 08:25:32 +10:00
parent ec144b4181
commit 489476feeb
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ class NinjaMailerJob implements ShouldQueue
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);
}

View File

@ -250,7 +250,7 @@ class Email implements ShouldQueue
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);
}
}