Fix jwt-token
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user