Skip to content

Commit

Permalink
fix endpoint get promotees (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
iostream1308 authored Feb 3, 2025
1 parent 016925a commit 0404928
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v2/pkg/storage/promotees/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ func (s *Storage) Get(query PromoteesQuery) ([]Promotee, error) {
return nil, err
}

for i := range promotees {
if promotees[i].Name == "" {
promotees[i].Name = "UNKNOWN"
}
}
return promotees, nil
}

Expand Down

0 comments on commit 0404928

Please sign in to comment.