Merge pull request #284 from WDI-Ideas/sayli

Sayli
This commit is contained in:
Sayli Raut
2024-07-10 12:01:41 +05:30
committed by GitHub

View File

@@ -252,6 +252,7 @@ class RestaurantApiServices
// Count the redeems within the state interval
$redeemCountState = RedeemRestaurant::where('state_xid', $restaurant->state_xid)
->where('iam_principal_xid', $customerIamId)
->count();
if ($redeemCountState >= $stateMaxLimitation) {
@@ -263,6 +264,7 @@ class RestaurantApiServices
// Count the redeems within the restaurant interval
$redeemCountRestaurant = RedeemRestaurant::where('manage_restaurants_xid', $restaurant->id)
->where('iam_principal_xid', $customerIamId)
->count();
if ($redeemCountRestaurant >= $restaurantMaxLimitation) {