v1.7.6/version bump

- add hotstar support
- add hotstar to website
This commit is contained in:
2020-09-15 23:56:04 -04:00
parent 19e3961912
commit e578ea0240
21 changed files with 366 additions and 14 deletions
+10 -4
View File
@@ -8,14 +8,20 @@ const isValidPin = (pin) => /^.*[0-9].{2}$/.test(pin);
module.exports = async (req, res) => {
const bodydata = JSON.parse(req.body);
console.log('Requested Create - UID - ', bodydata.uid);
if (!bodydata.userName) res.status(400).send({ message: 'Missing user name' });
if (!bodydata.partyName) res.status(400).send({ message: 'Missing party name' });
if (!bodydata.partyPin) res.status(400).send({ message: 'Missing party pin' });
if (!bodydata.userName) {
return res.status(400).send({ message: 'Missing user name' });
}
if (!bodydata.partyName) {
return res.status(400).send({ message: 'Missing party name' });
}
if (!bodydata.partyPin) {
return res.status(400).send({ message: 'Missing party pin' });
}
if (partyNameHasInvalidChar(bodydata.partyName)) {
res.status(400).send({ message: 'Party name can not have "\\" or "/" or "."' });
}
if (!isValidPin(bodydata.partyPin)) {
res
return res
.status(400)
.send({ message: 'Party pin can only have digits and must be atleast 3 digits' });
}