add status order in fetch_cod_orders function

This commit is contained in:
2026-09-05 00:27:53 +03:00
parent 34d40fc219
commit 1d159dd7c6
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
__pycache__/
*.pyc
+1 -1
View File
@@ -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