aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lightning/send.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-07-28 20:16:58 -0700
committerAdam Soltys <[email protected]>2020-07-28 20:25:16 -0700
commitd22869941ec704edd17d1d05038e6139681f97cf (patch)
treecfe600fead05c7e78dec6932c62d42171251eac8 /routes/lightning/send.js
parent72f3bc93357e74b71be0e3f1e621fb556f7fd088 (diff)
downloadcoinos-server-d22869941ec704edd17d1d05038e6139681f97cf.tar.gz
coinos-server-d22869941ec704edd17d1d05038e6139681f97cf.zip
use async handler to catch async errors
Diffstat (limited to 'routes/lightning/send.js')
-rw-r--r--routes/lightning/send.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/lightning/send.js b/routes/lightning/send.js
index be68143e..ad1bea62 100644
--- a/routes/lightning/send.js
+++ b/routes/lightning/send.js
@@ -1,4 +1,4 @@
-module.exports = async (req, res) => {
+module.exports = ah(async (req, res) => {
let { amount, route, memo, payreq } = req.body;
let { user } = req;
@@ -9,4 +9,4 @@ module.exports = async (req, res) => {
res.status(500).send(e.message);
throw new Error(e.message);
}
-};
+});