diff --git a/routes/api/startup.js b/routes/api/startup.js index 12c9fa6..77960c9 100644 --- a/routes/api/startup.js +++ b/routes/api/startup.js @@ -5,7 +5,7 @@ const db = global.db; router.post('/', async (req, res) => { const { serverId, serverStartTime, revision, placeId} = req.body; console.log('Received startup data:', req.body); - if (!serverId || !serverStartTime || !revision || !placeId) { + if (serverId === undefined || serverStartTime === undefined || revision === undefined || placeId === undefined) { return res.status(400).json({ error: 'Missing required fields' }); } console.log(`Recording startup: ${serverId} at ${serverStartTime} for place ${placeId} rev ${revision}`);