This commit is contained in:
Christopher Cookman 2026-01-25 14:53:38 -07:00
parent 472b0dc900
commit aec4e84d4a

View file

@ -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}`);