From f9b311145d9e51e65e369f31788745704c1c0755 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Fri, 7 Aug 2020 13:49:45 -0400 Subject: [PATCH] v1.6.0/heads up msg --- functions/modules2/createRoom.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/functions/modules2/createRoom.js b/functions/modules2/createRoom.js index 3919f2e..9f232ab 100644 --- a/functions/modules2/createRoom.js +++ b/functions/modules2/createRoom.js @@ -63,4 +63,16 @@ 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({ + uid: '', + 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(), + }); };