Merge pull request #325 from WDI-Ideas/sayli

Sayli
This commit is contained in:
Sayli Raut
2024-07-15 17:53:54 +05:30
committed by GitHub

View File

@@ -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 = [];