diff options
| author | Adam Soltys <[email protected]> | 2024-09-24 20:12:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-24 20:12:32 -0700 |
| commit | 3ac47dfbda99f192201af63357e51efc01dde612 (patch) | |
| tree | 8add213fcd414ebdd33a57e58e2a221a861c768e /routes | |
| parent | 80365c227c5a774ad65f5dad8b989e1966630160 (diff) | |
| download | coinos-server-3ac47dfbda99f192201af63357e51efc01dde612.tar.gz coinos-server-3ac47dfbda99f192201af63357e51efc01dde612.zip | |
handle txoutset retries
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/payments.ts | 2 | ||||
| -rw-r--r-- | routes/users.ts | 2 |
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); } |
