mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-10 17:01:36 +02:00
lnurlp: allow creation of pay_links without webhook_url.
This commit is contained in:
parent
e1744caec5
commit
1eac618a25
@ -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…
x
Reference in New Issue
Block a user