Fix PaymentWasCreated event second parameter (#3175)

This commit is contained in:
Benjamin Beganović 2019-12-28 07:25:18 +01:00 committed by David Bomba
parent e406020ee5
commit 1f7c661929
3 changed files with 48 additions and 48 deletions

View File

@ -164,7 +164,7 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
$this->attachInvoices($payment, $request->input('hashed_ids'));
event(new PaymentWasCreated($payment));
event(new PaymentWasCreated($payment, $payment->company));
UpdateInvoicePayment::dispatchNow($payment, $payment->company);

View File

@ -180,7 +180,7 @@ class RandomDataSeeder extends Seeder
$payment->invoices()->save($invoice);
event(new PaymentWasCreated($payment));
event(new PaymentWasCreated($payment, $payment->company));
UpdateInvoicePayment::dispatchNow($payment, $payment->company);
}