Fix jwt-token

This commit is contained in:
2025-09-22 07:37:59 +02:00
parent b8d789adfc
commit c888c0ac18

View File

@@ -541,7 +541,7 @@ router.post('/:id/approve', async (req, res) => {
try { try {
const { Device, DroneDetection, Heartbeat, Tenant } = getModels(); const { Device, DroneDetection, Heartbeat, Tenant } = getModels();
const deviceId = parseInt(req.params.id); const deviceId = req.params.id; // Keep device ID as string - don't parse as integer
const { approved } = req.body; const { approved } = req.body;
if (typeof approved !== 'boolean') { if (typeof approved !== 'boolean') {