aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2018-12-21 03:14:40 +0000
committerAdam Soltys <[email protected]>2018-12-21 03:14:41 +0000
commitae79b2a52f4527de0e24a6fe2e9b161c804de02a (patch)
treea07f5d577161652cd7420937efbe3f64b651cccd
parentf8838c16416e1343a878d75621fd37073896f254 (diff)
downloadcoinos-server-ae79b2a52f4527de0e24a6fe2e9b161c804de02a.tar.gz
coinos-server-ae79b2a52f4527de0e24a6fe2e9b161c804de02a.zip
remove user reloads
-rw-r--r--index.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/index.js b/index.js
index 1f244eab..e4e4d2c6 100644
--- a/index.js
+++ b/index.js
@@ -302,7 +302,6 @@ const l = console.log
})
app.post('/sendPayment', auth, async (req, res) => {
- await req.user.reload()
let hash = req.body.payreq
let payreq = bolt11.decode(hash)
@@ -357,7 +356,6 @@ const l = console.log
})
app.post('/sendCoins', auth, async (req, res) => {
- await req.user.reload()
const MINFEE = 3000
let { address, amount } = req.body