Skip to content

Commit

Permalink
fix: first error now gone [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Faber committed Oct 9, 2021
1 parent 5e8e93b commit ff17a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks/keycloak/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function main(): Promise<void> {

// Create realm 'otomi'
const realmConf = realmConfig.createRealm(keyCloakRealm)
const existingRealm = (await doApiCall(errors, `Getting realm ${keyCloakRealm}`, () =>
const existingRealm = (await doApiCall([], `Getting realm ${keyCloakRealm}`, () =>
api.realms.realmGet(keyCloakRealm),
)) as RealmRepresentation
if (existingRealm) {
Expand All @@ -101,7 +101,7 @@ async function main(): Promise<void> {

// the api does not offer a list method, and trying to get by id throws an error
// so we run the next command without the errors array, as we expect this error to occur
const clientScopes = (await doApiCall([], 'Getting openid client scope', () =>
const clientScopes = (await doApiCall(errors, 'Getting openid client scope', () =>
api.clientScope.realmClientScopesGet(keyCloakRealm),
)) as Array<ClientScopeRepresentation>
const existingScope = clientScopes.find((el) => el.name === scope.name)
Expand Down

0 comments on commit ff17a4d

Please sign in to comment.