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:
parent
fe4885f5a6
commit
dc63e533df
@ -11,6 +11,8 @@
|
||||
|
||||
namespace App\Events\Quote;
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Models\Quote;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
|
@ -53,7 +53,6 @@ class EntityPaidMailer extends BaseMailerJob implements ShouldQueue
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
info("entity paid mailer");
|
||||
//Set DB
|
||||
//
|
||||
MultiDB::setDb($this->company->db);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user