aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-10-16 08:55:36 -0700
committerAdam Soltys <[email protected]>2023-10-16 08:55:38 -0700
commit750bfa2943a3b2b080c4ca515fa071f15897cb30 (patch)
treef23230c7386e32ba42222fccc3259d4fa694f489 /routes
parentc1ac51844bd28f035a6e0a768cc055954bc4f206 (diff)
downloadcoinos-server-750bfa2943a3b2b080c4ca515fa071f15897cb30.tar.gz
coinos-server-750bfa2943a3b2b080c4ca515fa071f15897cb30.zip
fix pot withdrawals
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/payments.js b/routes/payments.js
index c6676930..a6120caf 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -296,11 +296,12 @@ export default {
});
}
- let payment = await credit(hash, amount, name, name, types.pot);
- await db.lPush(`pot:${name}:payments`, hash);
+ let payment = await credit(id, amount, name, name, types.pot);
+ await db.lPush(`pot:${name}:payments`, payment.id);
res.send({ payment });
} catch (e) {
+ warn("problem withdrawing from pot", e.message);
bail(res, e.message);
}
},