mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 02:28:10 +01: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
|
||||
|
||||
|
||||
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:
|
||||
db.execute(
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user