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 = {}) {
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
};