Updates for email send logs

This commit is contained in:
David Bomba 2023-11-11 10:57:46 +11:00
parent 427b781da3
commit 51614b48b7
2 changed files with 9 additions and 2 deletions

View File

@ -69,8 +69,15 @@ class EmailSuccess extends GenericMixedMetric
*/
public $string_metric7 = '';
public function __construct($string_metric7)
/**
* Subject
* @var string
*/
public $string_metric8 = '';
public function __construct($string_metric7 = '', $string_metric8 = '')
{
$this->string_metric7 = $string_metric7;
$this->string_metric8 = $string_metric8;
}
}

View File

@ -140,7 +140,7 @@ class NinjaMailerJob implements ShouldQueue
/* Count the amount of emails sent across all the users accounts */
Cache::increment("email_quota".$this->company->account->key);
LightLogs::create(new EmailSuccess($this->nmo->company->company_key))
LightLogs::create(new EmailSuccess($this->nmo->company->company_key, $this->nmo->mailable->subject))
->send();
} catch(\Symfony\Component\Mime\Exception\RfcComplianceException $e) {