aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-06-10 16:19:01 -0700
committerRan Guin <[email protected]>2021-06-10 16:19:01 -0700
commitd7ce6d6d60752a71da23818839f1a2d9d6a9dac5 (patch)
tree64f17d3d7e263396feee66533b68cd4b8114be53
parent59f3fb27fc717544232f8382094d2de7e74076a6 (diff)
downloadcoinos-server-d7ce6d6d60752a71da23818839f1a2d9d6a9dac5.tar.gz
coinos-server-d7ce6d6d60752a71da23818839f1a2d9d6a9dac5.zip
use req.body for post parameters
-rw-r--r--routes/referrals.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/referrals.js b/routes/referrals.js
index d1c24715..fb473cca 100644
--- a/routes/referrals.js
+++ b/routes/referrals.js
@@ -195,7 +195,7 @@ router.get(
}
)
- return res.send({ verified: true });
+ return res.send({ verified: true, sponsor_id: found.sponsor_id, updated: found.updated_at});
} else {
res.status(500).send({ verified: false, message: 'Referral already ' + found[0].status })
}
@@ -228,7 +228,7 @@ router.get(
router.post(
"/joinQueue",
ah(async (req, res) => {
- const { email, sms } = req.query;
+ const { email, sms } = req.body;
debug('email: ' + email)
debug('sms: ' + sms)