From 8a82c69419dc358fbaeab322c32d18ee84656feb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 5 Sep 2022 21:08:53 -0700 Subject: missing imports and fastify err responses --- routes/send.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/send.js') diff --git a/routes/send.js b/routes/send.js index 67dbaca4..5c9203ba 100644 --- a/routes/send.js +++ b/routes/send.js @@ -21,7 +21,7 @@ export default async (req, res, next) => { if (!asset) asset = config.liquid.btcasset; if (!amount || amount < 0) - return res.status(500).send("Amount must be greater than zero"); + return res.code(500).send("Amount must be greater than zero"); try { await db.transaction(async transaction => { @@ -212,6 +212,6 @@ export default async (req, res, next) => { } catch (e) { console.log(e); err("problem sending internal payment", user.username, e.message); - return res.status(500).send(e.message); + return res.code(500).send(e.message); } }; -- cgit v1.2.3