v1.7.6/version bump
- add hotstar support - add hotstar to website
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "watch-party-api",
|
||||
"version": "1.7.5",
|
||||
"version": "1.7.6",
|
||||
"description": "Cloud Functions for Watch Party",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
|
||||
Reference in New Issue
Block a user