needs testing
This commit is contained in:
parent
46400448f1
commit
65b926ad08
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ async def api_link_retrieve(
|
||||||
status_code=HTTPStatus.FORBIDDEN, detail="Not your pay link."
|
status_code=HTTPStatus.FORBIDDEN, detail="Not your pay link."
|
||||||
)
|
)
|
||||||
|
|
||||||
return {**link._asdict(), **{"lnurl": link.lnurl}}
|
return {**link.dict(), **{"lnurl": link.lnurl}}
|
||||||
|
|
||||||
|
|
||||||
@satsdice_ext.post("/api/v1/links", status_code=HTTPStatus.CREATED)
|
@satsdice_ext.post("/api/v1/links", status_code=HTTPStatus.CREATED)
|
||||||
|
|
@ -112,7 +112,7 @@ async def api_link_delete(
|
||||||
status_code=HTTPStatus.NOT_FOUND, detail="Pay link does not exist."
|
status_code=HTTPStatus.NOT_FOUND, detail="Pay link does not exist."
|
||||||
)
|
)
|
||||||
|
|
||||||
if link.wallet != g.wallet.id:
|
if link.wallet != wallet.wallet.id:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=HTTPStatus.FORBIDDEN, detail="Not your pay link."
|
status_code=HTTPStatus.FORBIDDEN, detail="Not your pay link."
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue