diff --git a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php index 10992a2..724e7b5 100644 --- a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php +++ b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php @@ -28,7 +28,7 @@ class RestaurantApiServices public function getCoordinates($customerIamId) { try { - $perPage = request()->get('per_page', 10000); + // $perPage = request()->get('per_page', 10000); $restaurants = ManageRestaurant::with('closedRestaurant') ->select( @@ -40,18 +40,7 @@ class RestaurantApiServices 'latitude', 'longtitude' ) - ->where('is_active', '1') - ->paginate($perPage); - - // foreach ($restaurants as &$restaurant) { - // $restaurant['image'] = ListingImageUrl('restaurant_images', $restaurant['image']); - - // $isFavourite = CustomerFavouriteRestaurant::where('principal_xid', $customerIamId) - // ->where('restaurant_xid', $restaurant['id']) - // ->exists(); - // $restaurant['is_favourite'] = $isFavourite; - // $restaurant['operating_hours'] = getOpeningHoursOfRestaurant($restaurant['name']); // Will update later - // } + ->where('is_active', '1')->get(); $client = new Client(); $promises = [];