Fix jwt-token

This commit is contained in:
2025-09-09 07:19:58 +02:00
parent 29f7b25954
commit 23e144aec1
2 changed files with 25 additions and 8 deletions

View File

@@ -77,7 +77,8 @@ router.get('/', authenticateToken, async (req, res) => {
device_id: device.id,
server_timestamp: {
[Op.gte]: new Date(Date.now() - 24 * 60 * 60 * 1000) // Last 24 hours
}
},
drone_type: { [Op.ne]: 0 }
}
});
@@ -159,7 +160,8 @@ router.get('/map', authenticateToken, async (req, res) => {
device_id: device.id,
server_timestamp: {
[Op.gte]: new Date(Date.now() - 10 * 60 * 1000) // Last 10 minutes
}
},
drone_type: { [Op.ne]: 0 }
}
});