aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-07-14 17:25:45 -0700
committerRan Guin <[email protected]>2021-07-14 17:25:45 -0700
commit07fe3e8d70806eddf558b2c03899e6e8a1327af7 (patch)
treedbce29691d8f51f900505ec4b6b2a772999c4ac5
parentb70d636a16944cc121a6eb2b8a6943e3a2d04ef3 (diff)
downloadcoinos-server-07fe3e8d70806eddf558b2c03899e6e8a1327af7.tar.gz
coinos-server-07fe3e8d70806eddf558b2c03899e6e8a1327af7.zip
replace sms with phone
-rw-r--r--routes/referrals.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/routes/referrals.js b/routes/referrals.js
index 5178dc19..91b14cb3 100644
--- a/routes/referrals.js
+++ b/routes/referrals.js
@@ -217,12 +217,12 @@ router.get(
/**
- * @api {post} /joinQueue Join waiting list (track email & sms)
+ * @api {post} /joinQueue Join waiting list (track email & phone)
* @apiName joinQueue
* @apiGroup Referrals
*
* @apiParam {email}
- * @apiParam {sms}
+ * @apiParam {phone}
*
* @apiSuccess verified = true
* @apiSuccessExample {json} Success-Response:
@@ -238,34 +238,34 @@ router.get(
router.post(
"/joinQueue",
ah(async (req, res) => {
- const { email, sms } = req.body;
+ const { email, phone } = req.body;
debug('email: ' + email)
- debug('sms: ' + sms)
+ debug('phone: ' + phone)
console.log(email + ' BODY: ' + JSON.stringify(req.body))
await db.WaitingList.create({
email: email,
- sms: sms
+ phone: phone
})
- res.send({success: true, message: 'Added ' + email + ' to waiting list ' + sms})
+ res.send({success: true, message: 'Added ' + email + ' to waiting list ' + phone})
})
);
router.get(
"/joinQueue",
ah(async (req, res) => {
- const {email, sms} = req.query;
+ const {email, phone} = req.query;
debug('email: ' + email)
- debug('sms: ' + sms)
+ debug('phone: ' + phone)
console.log(email + ' BODY: ' + JSON.stringify(req.body))
await db.WaitingList.create({
email: email,
- sms: sms
+ phone: phone
})
- res.send({success: true, message: 'Added ' + email + ' to waiting list ' + sms})
+ res.send({success: true, message: 'Added ' + email + ' to waiting list ' + phone})
})
);