fix for latest fastapi
This commit is contained in:
parent
422cb2f658
commit
f41c3f4044
2 changed files with 6 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue