Fix jwt-token
This commit is contained in:
@@ -541,7 +541,7 @@ router.post('/:id/approve', async (req, res) => {
|
||||
try {
|
||||
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;
|
||||
|
||||
if (typeof approved !== 'boolean') {
|
||||
|
||||
Reference in New Issue
Block a user