mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-31 15:42:03 -04:00
Fix calls to abort
This commit is contained in:
parent
9e437e8a12
commit
7bcbde28e4
@ -34,7 +34,7 @@ class LookupModel extends Eloquent
|
|||||||
if ($lookupAccount) {
|
if ($lookupAccount) {
|
||||||
$data['lookup_account_id'] = $lookupAccount->id;
|
$data['lookup_account_id'] = $lookupAccount->id;
|
||||||
} else {
|
} else {
|
||||||
abort('Lookup account not found for ' . $accountKey);
|
abort(404, 'Lookup account not found for ' . $accountKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
static::create($data);
|
static::create($data);
|
||||||
@ -96,7 +96,7 @@ class LookupModel extends Eloquent
|
|||||||
->first();
|
->first();
|
||||||
}
|
}
|
||||||
if (! $isFound) {
|
if (! $isFound) {
|
||||||
abort("Looked up {$className} not found: {$field} => {$value}");
|
abort(404, "Looked up {$className} not found: {$field} => {$value}");
|
||||||
}
|
}
|
||||||
|
|
||||||
Cache::put($key, $server, 120);
|
Cache::put($key, $server, 120);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user