fix: wrong typing in DB columns (#51)

* fix: wrong typing in DB columns
* fix: update
* fix: migrations
* chore: lint
This commit is contained in:
Tiago Vasconcelos 2025-04-15 12:29:34 +01:00 committed by GitHub
commit 79c74708e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 79 additions and 12 deletions

View file

@ -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