diff --git a/app/Services/APIs/RestaurantService/RestaurantApi_Service.php b/app/Services/APIs/RestaurantService/RestaurantApi_Service.php index 3e86b06..7ec5f2e 100644 --- a/app/Services/APIs/RestaurantService/RestaurantApi_Service.php +++ b/app/Services/APIs/RestaurantService/RestaurantApi_Service.php @@ -40,7 +40,7 @@ class RestaurantApi_Service ->where('principal_xid', $userDetail->id) ->get(); - $restaurantDetails = []; + // $restaurantDetails = []; $isActive = true; $inactiveMessage = ""; @@ -59,7 +59,7 @@ class RestaurantApi_Service } // Add restaurant details to the array - $restaurantDetails[] = $restaurant; + $restaurantDetails = $restaurant; } }