push before removing uuid

This commit is contained in:
ben
2022-08-24 09:33:38 +01:00
parent c10f89e1d6
commit 59d6b654c5
3 changed files with 44 additions and 4 deletions
+16
View File
@@ -110,6 +110,22 @@ async def api_hits(
):
wallet_ids = [g.wallet.id]
if all_wallets:
wallet_ids = (await get_user(g.wallet.user)).wallet_ids
cards = await get_cards(wallet_ids)
cards_ids = []
for card in cards:
cards_ids.append(card.id)
return [hit.dict() for hit in await get_hits(cards_ids)]
@boltcards_ext.get("/api/v1/refunds")
async def api_hits(
g: WalletTypeInfo = Depends(get_key_type), all_wallets: bool = Query(False)
):
wallet_ids = [g.wallet.id]
if all_wallets:
wallet_ids = (await get_user(g.wallet.user)).wallet_ids