diff options
| author | Adam Soltys <[email protected]> | 2023-01-18 23:14:48 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-18 23:14:48 -0800 |
| commit | ef3679051214a9b3047b68f236eac656edcf8d38 (patch) | |
| tree | 426eda7cf7e36026c60da2ae28ce7c61804518f8 /routes/payments.js | |
| parent | 90ddef9f0dd93e8f980eb728cf0519d9215163f0 (diff) | |
| download | coinos-server-ef3679051214a9b3047b68f236eac656edcf8d38.tar.gz coinos-server-ef3679051214a9b3047b68f236eac656edcf8d38.zip | |
bitcoin invoices
Diffstat (limited to 'routes/payments.js')
| -rw-r--r-- | routes/payments.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/routes/payments.js b/routes/payments.js index ba701bef..fc506685 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -265,7 +265,7 @@ export default { }, async withdraw({ body: { name, amount }, user }, res) { - amount = parseInt(amount) + amount = parseInt(amount); await t(`pot:${name}`, async balance => { await new Promise(r => setTimeout(r, 100)); if (balance < amount) fail("Insufficient funds"); @@ -282,5 +282,10 @@ export default { await db.lPush(`pot:${name}:payments`, hash); res.send({ payment }); + }, + + async bitcoin({ body }, res) { + console.log(body); + res.send({}); } }; |
