aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-24 20:12:32 -0700
committerAdam Soltys <[email protected]>2024-09-24 20:12:32 -0700
commit3ac47dfbda99f192201af63357e51efc01dde612 (patch)
tree8add213fcd414ebdd33a57e58e2a221a861c768e /routes
parent80365c227c5a774ad65f5dad8b989e1966630160 (diff)
downloadcoinos-server-3ac47dfbda99f192201af63357e51efc01dde612.tar.gz
coinos-server-3ac47dfbda99f192201af63357e51efc01dde612.zip
handle txoutset retries
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.ts2
-rw-r--r--routes/users.ts2
2 files changed, 2 insertions, 2 deletions
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);
}