Fix jwt-token

This commit is contained in:
2025-09-15 15:20:39 +02:00
parent dbb4ea62e6
commit 6ffe1156ca

View File

@@ -222,10 +222,11 @@ async function createTestDetection(detectionData = {}) {
async function createTestTenant(tenantData = {}) { async function createTestTenant(tenantData = {}) {
const { Tenant } = models; const { Tenant } = models;
const timestamp = Date.now();
const defaultTenantData = { const defaultTenantData = {
name: 'Test Tenant', name: 'Test Tenant',
slug: 'test-tenant-' + Date.now(), slug: 'test-tenant-' + timestamp,
domain: 'test.example.com', domain: 'test-' + timestamp + '.example.com',
is_active: true, is_active: true,
...tenantData ...tenantData
}; };