Fix jwt-token
This commit is contained in:
@@ -61,6 +61,9 @@ async function setupTestEnvironment() {
|
||||
DroneDetection.hasMany(AlertLog, { foreignKey: 'detection_id', as: 'alerts' });
|
||||
AlertLog.belongsTo(DroneDetection, { foreignKey: 'detection_id', as: 'detection' });
|
||||
|
||||
Device.hasMany(AlertLog, { foreignKey: 'device_id', as: 'alerts' });
|
||||
AlertLog.belongsTo(Device, { foreignKey: 'device_id', as: 'device' });
|
||||
|
||||
// Tenant associations
|
||||
Tenant.hasMany(User, { foreignKey: 'tenant_id', as: 'users' });
|
||||
User.belongsTo(Tenant, { foreignKey: 'tenant_id', as: 'tenant' });
|
||||
|
||||
Reference in New Issue
Block a user