From 3ac47dfbda99f192201af63357e51efc01dde612 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Sep 2024 20:12:32 -0700 Subject: handle txoutset retries --- routes/payments.ts | 2 +- routes/users.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'routes') diff --git a/routes/payments.ts b/routes/payments.ts index d4993b87..81e76085 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -279,7 +279,7 @@ export default { await s(`payment:${p.id}`, p); if (aid) await db.sRem(`inflight:${aid}`, p.id); } else { - if (aid) await db.sAdd(`inflight:${aid}`, p.id); + if (aid) await db.sAdd(`inflight:${aid}`, p.id); } emit(p.uid, "payment", p); diff --git a/routes/users.ts b/routes/users.ts index 34d20584..26a4b8f3 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -602,7 +602,7 @@ export default { let account = await g(`account:${id}`); account.balance = await g(`balance:${id}`); - if (account.seed) await reconcile(account); + if (account.seed) reconcile(account); accounts.push(account); } -- cgit v1.2.3