Fix jwt-token

This commit is contained in:
2025-09-17 05:57:11 +02:00
parent e8ba4b8bd4
commit 9ce9a18f96
2 changed files with 274 additions and 25 deletions

View File

@@ -4,7 +4,6 @@ const { Op } = require('sequelize');
// Dynamic model injection for testing
function getModels() {
if (global.__TEST_MODELS__) {
console.log('🔧 DEBUG: Using global test models in detections route');
return global.__TEST_MODELS__;
}
return require('../models');