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')