[sheet-service] updated price option prefix

This commit is contained in:
Ittipat Lusuk 2026-06-18 14:57:59 +07:00
parent 77fe041792
commit bfc1cc797a

View file

@ -530,7 +530,7 @@ def redis_message_handler():
if option.startswith("PriceSlot"): if option.startswith("PriceSlot"):
handle_get_price_slot(country, user_id, option) handle_get_price_slot(country, user_id, option)
elif (option == "All"): elif (option == "price"):
if not (content): if not (content):
raise Exception (f"[{SERVICE_NAME}] Missing required parameters | Channel: {channel}") raise Exception (f"[{SERVICE_NAME}] Missing required parameters | Channel: {channel}")
@ -1961,7 +1961,6 @@ def handle_get_price_slot(country: str, user_id: str, option: str = ""):
print(f"[{SERVICE_NAME}] Get price slot error: {e}") print(f"[{SERVICE_NAME}] Get price slot error: {e}")
traceback.print_exc() traceback.print_exc()
# กรณีพัง ให้ยิง Error กลับไปบอก Frontend ด้วย
if FRONTEND_NOTIFY_URL: if FRONTEND_NOTIFY_URL:
error_payload = { error_payload = {
"type": "notify", "type": "notify",