aboutsummaryrefslogtreecommitdiffstats
path: root/routes/funding.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-05 21:08:53 -0700
committerAdam Soltys <[email protected]>2022-09-05 21:08:53 -0700
commit8a82c69419dc358fbaeab322c32d18ee84656feb (patch)
treedf71a4f11a16d241a38c30e6841fe199725bc7fb /routes/funding.js
parenta3bcd415de65a6ae14ea451d7d1c8f3f136e99d4 (diff)
downloadcoinos-server-8a82c69419dc358fbaeab322c32d18ee84656feb.tar.gz
coinos-server-8a82c69419dc358fbaeab322c32d18ee84656feb.zip
missing imports and fastify err responses
Diffstat (limited to 'routes/funding.js')
-rw-r--r--routes/funding.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/routes/funding.js b/routes/funding.js
index c8654a31..b2275b48 100644
--- a/routes/funding.js
+++ b/routes/funding.js
@@ -24,7 +24,7 @@ app.post(
mailgun.messages().send(data);
l("id uploaded", user.username);
- res.end();
+ res.send({});
})
app.post(
@@ -39,7 +39,7 @@ app.post(
emit(user.username, "user", user);
l("id proof uploaded", user.username);
- res.end();
+ res.send({});
})
app.post(
@@ -78,7 +78,7 @@ app.post(
res.send(deposit);
} catch (e) {
err("funding error", e.message);
- res.status(500).send("Funding request failed");
+ res.code(500).send("Funding request failed");
}
})
@@ -101,9 +101,9 @@ app.post(
notes
});
- res.end();
+ res.send({});
} catch (e) {
err("withdrawaerr", e.message);
- res.status(500).send("Withdrawal request failed");
+ res.code(500).send("Withdrawal request failed");
}
})