mirror of
https://github.com/sctn4elk/CustomerRewardsRESTAPI.git
synced 2025-01-08 15:14:29 -06:00
Fix broken insert
This commit is contained in:
parent
0878d1af1c
commit
cbf7f6a127
|
@ -124,6 +124,7 @@ class CustomerController extends BaseController {
|
|||
|
||||
//remove customer_id field so it doesn't break
|
||||
unset($input['customer_id']);
|
||||
unset($input['image_path']);
|
||||
|
||||
$response = $this->customerModel->insertCustomer($input);
|
||||
return $response;
|
||||
|
|
|
@ -41,7 +41,7 @@ class CustomerModel extends Database {
|
|||
|
||||
public function insertCustomer($inputModel)
|
||||
{
|
||||
//return var_dump($jsonPayLoad);
|
||||
//return var_dump($inputModel);
|
||||
$keys = array_keys($inputModel);
|
||||
$n = count($keys);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user