diff options
| author | Adam Soltys <[email protected]> | 2019-10-14 23:41:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2019-10-14 23:41:20 -0700 |
| commit | a3ae613d7e2cde43096dcd80f8a1e04a7fb2512f (patch) | |
| tree | b6a78851f106c9cf4849f140e5954da511588086 /stripe.js | |
| parent | 7c77d82d6bb52662b98461c67b7240182ded8002 (diff) | |
| download | coinos-server-a3ae613d7e2cde43096dcd80f8a1e04a7fb2512f.tar.gz coinos-server-a3ae613d7e2cde43096dcd80f8a1e04a7fb2512f.zip | |
use database transaction when updating balance on block receipt
Diffstat (limited to 'stripe.js')
| -rw-r--r-- | stripe.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ const config = require("./config"); +const l = console.log; module.exports = (auth, app, db, emit) => { app.post("/buy", auth, async (req, res) => { @@ -33,7 +34,7 @@ module.exports = (auth, app, db, emit) => { res.send(`Bought ${amount}`); } catch (e) { - console.log(e); + l(e); res.status(500).send(e); } }); |
