From 1a01e5e562961c9deb15113141b5d3b7890e8c76 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Thu, 30 Jul 2020 23:40:34 -0400 Subject: [PATCH] v1.5.2/release functions --- functions/modules2/updatePlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/modules2/updatePlayer.js b/functions/modules2/updatePlayer.js index ccf9c27..7ae9253 100644 --- a/functions/modules2/updatePlayer.js +++ b/functions/modules2/updatePlayer.js @@ -14,7 +14,7 @@ module.exports = async (req, res) => { // player.time > 3600 // ? new Date(player.time * 1000).toISOString().substr(11, 8) // : new Date(player.time * 1000).toISOString().substr(14, 5); - if (!roomId) return res.status(400).send({ message: 'Party name not sent.' }); + if (!roomId) return res.status(204).send({ message: 'Party name not sent.' }); const [roomExists, roomData] = await admin .firestore() .collection('rooms')