deleting expired invoices based on their actual expiry date.
also fixes a possible bug that could have caused pending outgoing payments to be deleted and affecting the balance. probably never happened.
This commit is contained in:
@@ -43,11 +43,6 @@ class Wallet(NamedTuple):
|
||||
|
||||
return get_wallet_payments(self.id, complete=complete, pending=pending, outgoing=outgoing, incoming=incoming)
|
||||
|
||||
def delete_expired_payments(self, seconds: int = 86400) -> None:
|
||||
from .crud import delete_wallet_payments_expired
|
||||
|
||||
delete_wallet_payments_expired(self.id, seconds=seconds)
|
||||
|
||||
|
||||
class Payment(NamedTuple):
|
||||
checking_id: str
|
||||
|
||||
Reference in New Issue
Block a user