v1.6.3/release
function update
This commit is contained in:
@@ -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!' });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user