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