lnurlp: allow creation of pay_links without webhook_url.

This commit is contained in:
fiatjaf 2020-10-05 20:12:24 -03:00
parent e1744caec5
commit 1eac618a25

View File

@ -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(
"""