Fix jwt-token
This commit is contained in:
@@ -64,16 +64,17 @@ describe('Models', () => {
|
||||
const tenant1 = await createTestTenant({ slug: 'tenant1' });
|
||||
const tenant2 = await createTestTenant({ slug: 'tenant2' });
|
||||
|
||||
const timestamp = Date.now();
|
||||
const user1 = await models.User.create({
|
||||
username: 'testuser',
|
||||
email: 'test1@example.com',
|
||||
email: `test1-${timestamp}@example.com`,
|
||||
password_hash: 'hashedpassword',
|
||||
tenant_id: tenant1.id
|
||||
});
|
||||
|
||||
const user2 = await models.User.create({
|
||||
username: 'testuser',
|
||||
email: 'test2@example.com',
|
||||
email: `test2-${timestamp}@example.com`,
|
||||
password_hash: 'hashedpassword',
|
||||
tenant_id: tenant2.id
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user