Fred808 commited on
Commit
57b2264
·
verified ·
1 Parent(s): 54f97c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -588,10 +588,10 @@ async def payment_callback(request: Request):
588
 
589
  from fastapi_cache.decorator import cache
590
 
591
- @app.get("/track_order/{order_id}", response_model=List[TrackingUpdate])
592
  @cache(expire=60) # Cache for 1 minute
593
- async def get_order_tracking(order_id: str, page: int = 1, limit: int = 10):
594
- order_id = order_id.upper() # Normalize the order ID to uppercase
595
 
596
  try:
597
  async with async_session() as session:
 
588
 
589
  from fastapi_cache.decorator import cache
590
 
591
+ @app.get("/track_order/{deliveryId}", response_model=List[TrackingUpdate])
592
  @cache(expire=60) # Cache for 1 minute
593
+ async def get_order_tracking(deliveryId: str, page: int = 1, limit: int = 10):
594
+ order_id = deliveryId.upper() # Normalize the order ID to uppercase
595
 
596
  try:
597
  async with async_session() as session: