v1.7.0/hbo notice for create

This commit is contained in:
2020-09-05 11:27:28 -04:00
parent 201283fc8f
commit 92df4a6275
+10 -13
View File
@@ -62,18 +62,15 @@ module.exports = async (req, res) => {
err err
); );
}); });
if (bodydata.player.source === 'hbomax.' || bodydata.player.source === 'hbonow.') { if (bodydata.player.source === 'hbomax.' || bodydata.player.source === 'hbonow.') {
admin admin.firestore().collection('rooms').doc(bodydata.partyName).collection('messages').add({
.firestore() uid: '<system>',
.collection('rooms') name: 'GET UPDATE',
.doc(bodydata.partyName) type: 'interactive/link',
.collection('messages') endpoint: 'https://get.chromewatchparty.com/',
.add({ text: `If <Space> is accidentally toggling pause/play on HBO Now / Max. Make sure you're on the latest version - try removing and re-adding if an update option is not visible.`,
uid: '<system>', time: new Date(),
name: '', });
text: `<Space> is accidentally toggling pause/play on HBO Now / Max. Fix will be available soon. Please consider using voice calls for the time being.`, }
time: new Date(),
});
}
res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' }); res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' });
}; };