Fix jwt-token

This commit is contained in:
2025-09-15 15:23:32 +02:00
parent d9d6f9502f
commit 072086c4d2

View File

@@ -64,16 +64,17 @@ describe('Models', () => {
const tenant1 = await createTestTenant({ slug: 'tenant1' }); const tenant1 = await createTestTenant({ slug: 'tenant1' });
const tenant2 = await createTestTenant({ slug: 'tenant2' }); const tenant2 = await createTestTenant({ slug: 'tenant2' });
const timestamp = Date.now();
const user1 = await models.User.create({ const user1 = await models.User.create({
username: 'testuser', username: 'testuser',
email: 'test1@example.com', email: `test1-${timestamp}@example.com`,
password_hash: 'hashedpassword', password_hash: 'hashedpassword',
tenant_id: tenant1.id tenant_id: tenant1.id
}); });
const user2 = await models.User.create({ const user2 = await models.User.create({
username: 'testuser', username: 'testuser',
email: 'test2@example.com', email: `test2-${timestamp}@example.com`,
password_hash: 'hashedpassword', password_hash: 'hashedpassword',
tenant_id: tenant2.id tenant_id: tenant2.id
}); });