mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
commit
4f5dd12ea0
@ -131,11 +131,13 @@ class ClientApiController extends BaseAPIController
|
||||
* )
|
||||
*/
|
||||
|
||||
public function update(UpdateClientRequest $request)
|
||||
public function update(UpdateClientRequest $request, $publicId)
|
||||
{
|
||||
$client = $this->clientService->save($request->input());
|
||||
$data = $request->input();
|
||||
$data['public_id'] = $publicId;
|
||||
$this->clientService->save($data);
|
||||
|
||||
$client = Client::scope($client->public_id)
|
||||
$client = Client::scope($publicId)
|
||||
->with('country', 'contacts', 'industry', 'size', 'currency')
|
||||
->first();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user