aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-27 08:17:30 +0000
committerAdam Soltys <[email protected]>2024-11-27 08:17:32 +0000
commit19d257f9a794eead23a5e34a3bc948b4a4b8756d (patch)
tree9570f00e79b4c5e15e8247ed65b4005e7ccae9d4 /routes
parent430b17d26fa3fe2ef31c6fb0850882a9fd4c830c (diff)
downloadcoinos-server-19d257f9a794eead23a5e34a3bc948b4a4b8756d.tar.gz
coinos-server-19d257f9a794eead23a5e34a3bc948b4a4b8756d.zip
payload is body
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);
}