aboutsummaryrefslogtreecommitdiffstats
path: root/routes/send.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-03 01:52:53 -0700
committerAdam Soltys <[email protected]>2021-08-03 01:52:53 -0700
commit1344458e0cf3322253599524899b3cce565cf1af (patch)
treefd2eb66c71211f25f4e5e2ec209a78747a81e123 /routes/send.js
parentbca4fe152c83ab6a615a5e1601ca965187ee95e3 (diff)
parente5e2bcf015b128c71cacf125d6aea4a0dddd30c3 (diff)
downloadcoinos-server-1344458e0cf3322253599524899b3cce565cf1af.tar.gz
coinos-server-1344458e0cf3322253599524899b3cce565cf1af.zip
Merge branch 'dev' into v1.0.0
Diffstat (limited to 'routes/send.js')
-rw-r--r--routes/send.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/send.js b/routes/send.js
index 579e70b4..3aec9fb6 100644
--- a/routes/send.js
+++ b/routes/send.js
@@ -45,7 +45,7 @@ module.exports = ah(async (req, res, next) => {
};
if (!username) {
- return res.status(500).send("Vouchers temporarily disabled");
+ throw new Error("Vouchers temporarily disabled");
l.info("creating redeemable payment");
params.redeemcode = uuidv4();
params.hash = `${req.get("origin")}/redeem/${params.redeemcode}`;