Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Jun 19, 2024
1 parent cc90b61 commit 7794795
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/operator/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ async function keycloakRealmProviderConfigurer(api: KeycloakApi) {
// the api does not offer a list method, and trying to get by id throws an error
// which we wan to discard, so we run the next command with an empty errors array
console.log('api: ', api)
const existingRealm = await doApiCall([], `Getting realm ${keycloakRealm}`, () => api.realms.realmGet(keycloakRealm)) as RealmRepresentation
const existingRealm = (await doApiCall([], `Getting realm ${keycloakRealm}`, () =>
api.realms.realmGet(keycloakRealm),
)) as RealmRepresentation
if (existingRealm) {
await doApiCall(errors, `Updating realm ${keycloakRealm}`, async () =>
api.realms.realmPut(keycloakRealm, realmConf),
Expand Down

0 comments on commit 7794795

Please sign in to comment.