diff --git a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php index d877b6a..669397b 100644 --- a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php +++ b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php @@ -223,7 +223,7 @@ class RestaurantApiServices } // Check if the restaurant has already been redeemed - $restaurantExist = RedeemRestaurant::where('manage_restaurants_xid', $restaurant->id) + $restaurantExist = RedeemRestaurant::where('manage_restaurants_xid', $restaurant->id)->where('iam_principal_xid', $customerIamId) ->where('is_redeem', 1) ->first();