add status order in fetch_cod_orders function
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
__pycache__/
|
||||
*.pyc
|
||||
+1
-1
@@ -11,7 +11,7 @@ router = APIRouter(prefix="/api/orders", tags=["Orders"])
|
||||
@router.get("", response_model=List[OrderResponse])
|
||||
async def get_orders(current_user: dict = Depends(get_current_user)):
|
||||
try:
|
||||
orders = await fetch_cod_orders(status_name="Completed")
|
||||
orders = await fetch_cod_orders(status_name="APPROVED")
|
||||
return orders
|
||||
except Exception as e:
|
||||
# Логирование ошибки можно вынести в core/logger.py
|
||||
|
||||
Reference in New Issue
Block a user