Merge pull request #380 from arcbtc/FastAPI

restored create invoice api endpoint
This commit is contained in:
Arc 2021-11-03 11:20:37 +00:00 committed by GitHub
commit 4e6c9548ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ async def create_invoice(
webhook: Optional[str] = None, webhook: Optional[str] = None,
conn: Optional[Connection] = None, conn: Optional[Connection] = None,
) -> Tuple[str, str]: ) -> Tuple[str, str]:
if not memo: if memo == None:
memo = "LN payment" memo = "LN payment"
invoice_memo = None if description_hash else memo invoice_memo = None if description_hash else memo