lnurlp: allow creation of pay_links without webhook_url.
This commit is contained in:
parent
e1744caec5
commit
1eac618a25
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ from lnbits.db import open_ext_db
|
||||||
from .models import PayLink
|
from .models import PayLink
|
||||||
|
|
||||||
|
|
||||||
def create_pay_link(*, wallet_id: str, description: str, amount: int, webhook_url: str) -> Optional[PayLink]:
|
def create_pay_link(
|
||||||
|
*, wallet_id: str, description: str, amount: int, webhook_url: Optional[str] = None
|
||||||
|
) -> Optional[PayLink]:
|
||||||
with open_ext_db("lnurlp") as db:
|
with open_ext_db("lnurlp") as db:
|
||||||
db.execute(
|
db.execute(
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue