Fix jwt-token

This commit is contained in:
2025-09-17 22:43:44 +02:00
parent 43b548c05a
commit 6d66d8d772
8 changed files with 289 additions and 49 deletions

View File

@@ -133,6 +133,7 @@ describe('Performance Tests', () => {
where: { tenant_id: testTenant.id },
include: [{
model: models.Device,
as: 'device',
where: { tenant_id: testTenant.id }
}],
order: [['device_timestamp', 'DESC']],
@@ -459,8 +460,10 @@ describe('Performance Tests', () => {
const allTenants = await models.Tenant.findAll({
include: [{
model: models.Device,
as: 'devices',
include: [{
model: models.DroneDetection,
as: 'detections',
limit: 10,
order: [['device_timestamp', 'DESC']]
}]