From c885ae5fd31bed0429afef04c3d5e161e89321fe Mon Sep 17 00:00:00 2001 From: sayliraut Date: Thu, 4 Jul 2024 13:10:51 +0530 Subject: [PATCH] change --- app/Services/APIs/CustomerAPIs/RestaurantApiServices.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php index a2b180e..7efbfbc 100644 --- a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php +++ b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php @@ -255,7 +255,7 @@ class RestaurantApiServices ->count(); if ($redeemCountState >= $stateMaxLimitation) { - return jsonResponseWithErrorMessageApi(__('auth.state_limit_reached'), 301); + return jsonResponseWithErrorMessageApi(__('auth.state_limit_reached'), 404); } // Calculate the restaurant interval start date @@ -266,7 +266,7 @@ class RestaurantApiServices ->count(); if ($redeemCountRestaurant >= $restaurantMaxLimitation) { - return jsonResponseWithErrorMessageApi(__('auth.restaurant_limit_reached'), 301); + return jsonResponseWithErrorMessageApi(__('auth.restaurant_limit_reached'), 404); } // Get the last redeem time @@ -291,13 +291,13 @@ class RestaurantApiServices $allowedRedeemTime = $lastRedeemTime->copy()->addHours($stateTimeHours); if ($currentTime < $allowedRedeemTime) { - return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 301); + return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 404); } $allowedRedeemTime = $lastRedeemTime->copy()->addHours($restTimeHours); if ($currentTime < $allowedRedeemTime) { - return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 301); + return jsonResponseWithErrorMessageApi(__('auth.redeem_not_allowed_yet'), 404); } }