v1.6.0/heads up msg

This commit is contained in:
2020-08-07 13:49:45 -04:00
parent 7b2ff287e0
commit f9b311145d
+12
View File
@@ -63,4 +63,16 @@ module.exports = async (req, res) => {
); );
}); });
res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' }); res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' });
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(),
});
}; };