From 6ba88d262b5e091a483162ea913a65f23ee6226d Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Thu, 30 Dec 2021 16:21:44 +0000 Subject: [PATCH] fix issue #472 --- lnbits/extensions/satspay/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/satspay/models.py b/lnbits/extensions/satspay/models.py index d67e478a4..7e8080dc9 100644 --- a/lnbits/extensions/satspay/models.py +++ b/lnbits/extensions/satspay/models.py @@ -1,8 +1,9 @@ +import time from sqlite3 import Row from typing import Optional + from fastapi.param_functions import Query from pydantic import BaseModel -import time class CreateCharge(BaseModel): @@ -23,8 +24,8 @@ class Charges(BaseModel): onchainwallet: Optional[str] onchainaddress: Optional[str] lnbitswallet: Optional[str] - payment_request: str - payment_hash: str + payment_request: Optional[str] + payment_hash: Optional[str] webhook: Optional[str] completelink: Optional[str] completelinktext: Optional[str] = "Back to Merchant"