Fix jwt-token
This commit is contained in:
@@ -191,7 +191,11 @@ async function createTestUser(userData = {}) {
|
||||
}
|
||||
});
|
||||
|
||||
return await User.create(defaultUserData);
|
||||
// Try manual UUID generation as a workaround
|
||||
const { v4: uuidv4 } = require('uuid');
|
||||
const userWithId = { ...defaultUserData, id: uuidv4() };
|
||||
|
||||
return await User.create(userWithId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user