Fix jwt-token

This commit is contained in:
2025-09-15 14:29:40 +02:00
parent c8428d5415
commit aa5273841f
2 changed files with 15 additions and 2 deletions

View File

@@ -214,12 +214,16 @@ async function createTestDevice(deviceData = {}) {
}
if (!tenant) {
tenant = await Tenant.create({
// Use manual UUID generation for tenant creation
const { v4: uuidv4 } = require('uuid');
const tenantWithId = {
id: uuidv4(),
name: 'Test Tenant',
slug: 'test-tenant-' + uniqueSuffix,
domain: 'test-' + uniqueSuffix + '.example.com',
is_active: true
});
};
tenant = await Tenant.create(tenantWithId);
}
const defaultDeviceData = {