fix: wrong typing in DB columns (#51)
* fix: wrong typing in DB columns * fix: update * fix: migrations * chore: lint
This commit is contained in:
parent
3edd81d85e
commit
79c74708e1
4 changed files with 79 additions and 12 deletions
6
crud.py
6
crud.py
|
|
@ -57,11 +57,7 @@ async def create_card(data: CreateCardData, wallet_id: str) -> Card:
|
|||
return card
|
||||
|
||||
|
||||
async def update_card(card_id: str, data: CreateCardData) -> Card:
|
||||
card = Card(
|
||||
id=card_id,
|
||||
**data.dict(),
|
||||
)
|
||||
async def update_card(card: Card) -> Card:
|
||||
await db.update("boltcards.cards", card)
|
||||
return card
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue