v1.6.3/release

function update
This commit is contained in:
2020-08-20 11:18:45 -04:00
parent e37ce1b243
commit 5a0b008635
-34
View File
@@ -62,39 +62,5 @@ module.exports = async (req, res) => {
err
);
});
if (bodydata.player && bodydata.player.source === 'amazon.') {
await admin
.firestore()
.collection('rooms')
.doc(bodydata.partyName)
.collection('messages')
.add({
uid: '<system>',
name: 'Update to V1.6.1',
endpoint: 'https://get.chromewatchparty.com',
type: 'interactive/link',
text: `If Watch Party doesn't work make sure you're on V1.6.1. Try removing and re-adding if an update option is not visible`,
time: new Date(),
})
.catch((err) => {
console.error(`Failed to add amazon error message : \n\t Room: ${bodydata.partyName}`, err);
});
}
if (bodydata.player && bodydata.player.source === 'hulu.') {
await admin
.firestore()
.collection('rooms')
.doc(bodydata.partyName)
.collection('messages')
.add({
uid: '<system>',
name: '',
text: `Watch Party may not work temporarily. An update is coming to fix this.`,
time: new Date(),
})
.catch((err) => {
console.error(`Failed to add amazon error message : \n\t Room: ${bodydata.partyName}`, err);
});
}
res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' });
};