Skip to content

Commit

Permalink
fix: datetime model
Browse files Browse the repository at this point in the history
  • Loading branch information
talvasconcelos committed Oct 29, 2024
1 parent 3ca9d35 commit d0e5e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WithdrawLink(BaseModel):
webhook_headers: str = Query(None)
webhook_body: str = Query(None)
custom_url: str = Query(None)
created_at: datetime = datetime.now(timezone.utc)
created_at: datetime

@property
def is_spent(self) -> bool:
Expand Down Expand Up @@ -72,7 +72,7 @@ def lnurl(self, req: Request) -> Lnurl:
def lnurl_response(self, req: Request) -> LnurlWithdrawResponse:
url = req.url_for("withdraw.api_lnurl_callback", unique_hash=self.unique_hash)
return LnurlWithdrawResponse(
callback=ClearnetUrl(url, scheme="https"), # type: ignore
callback=ClearnetUrl(url, scheme="https"), # type: ignore
k1=self.k1,
minWithdrawable=MilliSatoshi(self.min_withdrawable * 1000),
maxWithdrawable=MilliSatoshi(self.max_withdrawable * 1000),
Expand Down

0 comments on commit d0e5e42

Please sign in to comment.