Skip to content

Commit

Permalink
Drop dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Oct 1, 2023
1 parent e00874f commit 194486a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reporting/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"log"
"strings"
"time"

"github.com/jackc/pgx"
Expand Down Expand Up @@ -90,7 +91,8 @@ func (c *Controller) scrape(ctx context.Context) error {
return fmt.Errorf("listing users from Keycloak: %w", err)
}
for _, user := range allUsers {
usersByUUID[user.UUID] = user
uuid := strings.ReplaceAll(user.UUID, "-", "") // remove dashes since we don't store them in access controller
usersByUUID[uuid] = user
}
}

Expand Down

0 comments on commit 194486a

Please sign in to comment.