[sheet-service] updated price option prefix
This commit is contained in:
parent
77fe041792
commit
bfc1cc797a
1 changed files with 1 additions and 2 deletions
3
main.py
3
main.py
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue