aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 1a886988..931bf167 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -849,6 +849,9 @@ export const check = async () => {
else if (failed) await reverse(p);
} catch (e) {
err("failed to finalize", p.id, e.message);
+ if (e.message?.includes("already been reversed")) {
+ await db.sRem("pending", p.hash);
+ }
}
}
} catch (e) {