feat: prod ready

This commit is contained in:
2026-05-11 14:53:28 +03:00
parent 10ff2a510d
commit 3f13032be1
3 changed files with 10 additions and 9 deletions

View File

@@ -35,12 +35,11 @@ order_router = APIRouter(prefix='/order', tags=['orders'])
#@csrf_protect()
async def create_order(
payment_data: CreateOrder,
#auth: AuthContext = Depends(require_access_token),
auth: AuthContext = Depends(require_access_token),
command: CreateOrderCommand = Depends(get_create_order_command),
logger: ILogger = Depends(get_logger),
) -> CreateOrderResponse:
#o = await command(payment_data, auth.user_id)
o = await command(payment_data, '01KPKAFN6J1NJBY15DX8JE2QYB')
o = await command(payment_data, auth.user_id)
itpay_error = o.status in (
OrderStatus.CANCELLED,
OrderStatus.REJECTED,