mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 22:47:05 +01:00
on-the-fly deletion
This commit is contained in:
parent
167c2ce9f1
commit
32448c4b0c
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class Payment(BaseModel):
|
|||
|
||||
logger.debug(f"Status: {status}")
|
||||
|
||||
if self.is_in and self.is_expired:
|
||||
if self.is_in and status.pending and self.is_expired:
|
||||
expiration_date = datetime.datetime.fromtimestamp(self.expiry)
|
||||
logger.debug(
|
||||
f"Deleting expired incoming payment {self.checking_id}: expired {expiration_date}"
|
||||
|
|
Loading…
Add table
Reference in a new issue