Skip to content

Commit

Permalink
Fix error insert customer via api admin
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Cart committed Apr 27, 2022
1 parent badb4ff commit 2e8e039
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Api/Controllers/AdminCustomerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ public function create(Request $request)
return response()->json($user);
}

/**
* Inser data new customer
*/
protected function insert($data)
{
$dataMap = $this->mappDataInsert($data);

$user = ShopCustomer::createCustomer($dataMap);

return $user;
}

/**
* Validate data input
*/
Expand Down

0 comments on commit 2e8e039

Please sign in to comment.