fix for latest fastapi

This commit is contained in:
dni ⚡ 2023-06-21 11:08:07 +02:00
commit f41c3f4044
No known key found for this signature in database
GPG key ID: 886317704CC4E618
2 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,5 @@
from http import HTTPStatus
from typing import Optional
from fastapi import Depends, HTTPException, Query
@ -37,7 +38,7 @@ async def api_cards(
@boltcards_ext.put("/api/v1/cards/{card_id}", status_code=HTTPStatus.OK)
async def api_card_create_or_update(
data: CreateCardData,
card_id: str = Query(None),
card_id: Optional[str],
wallet: WalletTypeInfo = Depends(require_admin_key),
):
try: