Bug fixes

This commit is contained in:
David Bomba 2016-02-17 14:46:28 +11:00
commit a6e9c5198d

View File

@ -140,7 +140,7 @@ class ClientApiController extends BaseAPIController
$client = Client::scope($publicId)->withTrashed()->first(); $client = Client::scope($publicId)->withTrashed()->first();
if(!$client) if(!$client)
return $this->errorResponse(['message'=>'Client not found.']); return $this->errorResponse(['message'=>'Record not found'], 400);
$this->clientRepo->archive($client); $this->clientRepo->archive($client);