Change _asdict() to dict()
This commit is contained in:
committed by
fiatjaf
parent
aba206c87e
commit
a00e46f629
@@ -66,7 +66,7 @@ async def api_link_retrieve(
|
||||
detail="Not your pay link.", status_code=HTTPStatus.FORBIDDEN
|
||||
)
|
||||
|
||||
return {**link._asdict(), **{"lnurl": link.lnurl(r)}}
|
||||
return {**link.dict(), **{"lnurl": link.lnurl(r)}}
|
||||
|
||||
|
||||
@lnurlp_ext.post("/api/v1/links", status_code=HTTPStatus.CREATED)
|
||||
|
||||
Reference in New Issue
Block a user