v1.6.0/cleanup, create expander, peacock msg

This commit is contained in:
2020-08-07 23:09:59 -04:00
parent fcd223bf2e
commit 89b956967c
4 changed files with 35 additions and 105 deletions
+10 -6
View File
@@ -64,15 +64,19 @@ module.exports = async (req, res) => {
});
res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' });
admin
.firestore()
.collection('rooms')
.doc(bodydata.partyName)
.collection('messages')
.add({
admin.firestore().collection('rooms').doc(bodydata.partyName).collection('messages').add({
uid: '<system>',
name: '',
text: `Big update coming on Monday (Aug. 10). Watch Party will be unavailable during the afternoon as we upgrade our services. See what's new at whatsnew.chromewatchparty.com`,
time: new Date(),
});
if (player.source === 'peacocktv.') {
admin.firestore().collection('rooms').doc(bodydata.partyName).collection('messages').add({
uid: '<system>',
name: '',
text: `Sync may not work flawlessly with PeacockTV till Monday's update. Please stick with us as we address this issue.`,
time: new Date(),
});
}
};