aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/ecash.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/ecash.ts b/routes/ecash.ts
index a807cdb5..e5039aa4 100644
--- a/routes/ecash.ts
+++ b/routes/ecash.ts
@@ -144,8 +144,7 @@ export default {
async receive(req, res) {
try {
- const { payload } = req.body;
- const { id, proofs, mint, memo } = payload;
+ const { id, proofs, mint, memo } = req.body;
const { uid: ref } = await g(`invoice:${id}`);
const amount = await claim(
@@ -159,6 +158,7 @@ export default {
res.send({ id });
} catch (e) {
+ console.log(e);
err(e.message);
bail(res, e.message);
}