fix double array on getprovinces

This commit is contained in:
mahdahar 2025-12-02 13:08:30 +07:00
parent d4f5e8b16a
commit 9dfcc7c0eb

View File

@ -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() {