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