Change _asdict() to dict()

This commit is contained in:
Tiago vasconcelos
2022-01-05 07:36:10 -03:00
committed by fiatjaf
parent aba206c87e
commit a00e46f629
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ async def dispatch_invoice_listener(payment: Payment):
async def dispatch_webhook(payment: Payment):
async with httpx.AsyncClient() as client:
data = payment._asdict()
data = payment.dict()
try:
r = await client.post(payment.webhook, json=data, timeout=40)
await mark_webhook_sent(payment, r.status_code)