diff --git a/app/Events/Quote/QuoteWasUpdated.php b/app/Events/Quote/QuoteWasUpdated.php index d6ccf8933bd7..c1ffc0de2817 100644 --- a/app/Events/Quote/QuoteWasUpdated.php +++ b/app/Events/Quote/QuoteWasUpdated.php @@ -11,6 +11,8 @@ namespace App\Events\Quote; +use App\Models\Company; +use App\Models\Quote; use Illuminate\Queue\SerializesModels; /** diff --git a/app/Jobs/Mail/EntityPaidMailer.php b/app/Jobs/Mail/EntityPaidMailer.php index a2175f2043c2..573d0a0c5f17 100644 --- a/app/Jobs/Mail/EntityPaidMailer.php +++ b/app/Jobs/Mail/EntityPaidMailer.php @@ -53,7 +53,6 @@ class EntityPaidMailer extends BaseMailerJob implements ShouldQueue */ public function handle() { - info("entity paid mailer"); //Set DB // MultiDB::setDb($this->company->db); diff --git a/app/Models/QuoteInvitation.php b/app/Models/QuoteInvitation.php index 4558f489943e..5bef00af9fe9 100644 --- a/app/Models/QuoteInvitation.php +++ b/app/Models/QuoteInvitation.php @@ -125,7 +125,7 @@ class QuoteInvitation extends BaseModel $storage_path = Storage::url($this->quote->client->quote_filepath() . $this->quote->number . '.pdf'); if (!Storage::exists($this->quote->client->quote_filepath() . $this->quote->number . '.pdf')) { - event(new QuoteWasUpdated($this, $this->company, Ninja::eventVars())); + event(new QuoteWasUpdated($this->quote, $this->company, Ninja::eventVars())); CreateQuotePdf::dispatchNow($this); }