Made some changes to the mock-api
This commit is contained in:
@@ -68,12 +68,6 @@ generatedAvrop.forEach(({ tjanstekod, tjansteNamn, utforandeVerksamhetId, utfora
|
||||
}
|
||||
});
|
||||
|
||||
generatedEmployees.forEach(employee => {
|
||||
employee.authorizations = [
|
||||
auths[Math.floor(Math.random() * auths.length)],
|
||||
auths[Math.floor(Math.random() * auths.length)],
|
||||
];
|
||||
});
|
||||
const apiData = {
|
||||
languages: languages.generate(),
|
||||
employees: generatedEmployees,
|
||||
@@ -87,7 +81,6 @@ const apiData = {
|
||||
employeeId: generatedEmployees[Math.floor(Math.random() * generatedEmployees.length)].id,
|
||||
})),
|
||||
currentUser: currentUser.generate(),
|
||||
authorizations: auths,
|
||||
getTokenFullAccess: authTokens.auth_code_from_CIAM_with_all_permissions,
|
||||
invites: [],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user