mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Updates for email send logs
This commit is contained in:
parent
427b781da3
commit
51614b48b7
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user