Fix zod schema error

This commit is contained in:
Joseph Garrone
2024-12-15 11:34:41 +01:00
parent dc942aa5de
commit db0ec954df
3 changed files with 69 additions and 187 deletions

View File

@ -51,7 +51,7 @@ export function prepareRealmConfig(params: {
}
return {
realmName: parsedRealmJson.name,
realmName: parsedRealmJson.realm,
clientName: clientId,
username
};
@ -138,7 +138,7 @@ function addOrEditTestUser(params: {
newUser.clientRoles = {};
for (const clientRole of parsedRealmJson.roles.client) {
for (const clientRole of Object.values(parsedRealmJson.roles.client).flat()) {
const clientName = nameByClientId[clientRole.containerId];
assert(clientName !== undefined);