mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Clean up error logs
This commit is contained in:
parent
252c6f0a56
commit
8c326e3dbc
@ -33,7 +33,11 @@ class CreatePaymentAPIRequest extends PaymentRequest
|
|||||||
$this->invoice = $invoice = Invoice::scope($this->invoice_id)
|
$this->invoice = $invoice = Invoice::scope($this->invoice_id)
|
||||||
->withArchived()
|
->withArchived()
|
||||||
->invoices()
|
->invoices()
|
||||||
->firstOrFail();
|
->first();
|
||||||
|
|
||||||
|
if (! $this->invoice) {
|
||||||
|
abort(404, 'Invoice was not found');
|
||||||
|
}
|
||||||
|
|
||||||
$this->merge([
|
$this->merge([
|
||||||
'invoice_id' => $invoice->id,
|
'invoice_id' => $invoice->id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user