Fix jwt-token
This commit is contained in:
@@ -222,10 +222,11 @@ async function createTestDetection(detectionData = {}) {
|
||||
async function createTestTenant(tenantData = {}) {
|
||||
const { Tenant } = models;
|
||||
|
||||
const timestamp = Date.now();
|
||||
const defaultTenantData = {
|
||||
name: 'Test Tenant',
|
||||
slug: 'test-tenant-' + Date.now(),
|
||||
domain: 'test.example.com',
|
||||
slug: 'test-tenant-' + timestamp,
|
||||
domain: 'test-' + timestamp + '.example.com',
|
||||
is_active: true,
|
||||
...tenantData
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user