Fix jwt-token
This commit is contained in:
@@ -215,7 +215,11 @@ async function createTestDetection(detectionData = {}) {
|
||||
async function createTestTenant(tenantData = {}) {
|
||||
const { Tenant } = models;
|
||||
|
||||
// Generate a simple test ID for tenant
|
||||
const testId = 'tenant-' + Date.now() + '-' + Math.random().toString(36).substr(2, 9);
|
||||
|
||||
const defaultTenantData = {
|
||||
id: testId, // Use explicit test ID
|
||||
name: 'Test Tenant',
|
||||
slug: 'test-tenant-' + Date.now(),
|
||||
domain: 'test.example.com',
|
||||
|
||||
Reference in New Issue
Block a user