fix double array on getprovinces
This commit is contained in:
parent
d4f5e8b16a
commit
9dfcc7c0eb
@ -33,7 +33,7 @@ class AreaGeo extends BaseController {
|
||||
public function getProvinces() {
|
||||
$rows = $this->model->getProvinces();
|
||||
if (empty($rows)) { return $this->respond([ 'status' => 'success', 'message' => "data not found", 'data' => '' ], 200); }
|
||||
return $this->respond([ 'status' => 'success', 'message'=> "Data fetched successfully", 'data' => [ $rows ] ], 200);
|
||||
return $this->respond([ 'status' => 'success', 'message'=> "Data fetched successfully", 'data' => $rows ], 200);
|
||||
}
|
||||
|
||||
public function getCities() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user