1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for quote event

This commit is contained in:
David Bomba 2020-07-14 20:35:41 +10:00
parent fe4885f5a6
commit dc63e533df
3 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,8 @@
namespace App\Events\Quote;
use App\Models\Company;
use App\Models\Quote;
use Illuminate\Queue\SerializesModels;
/**

View File

@ -53,7 +53,6 @@ class EntityPaidMailer extends BaseMailerJob implements ShouldQueue
*/
public function handle()
{
info("entity paid mailer");
//Set DB
//
MultiDB::setDb($this->company->db);

View File

@ -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);
}