Skip to content

Commit

Permalink
fix: query issue with list colleagues
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Jan 10, 2025
1 parent de5ea91 commit 8bee216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/go/proto/services/jobs/colleagues.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (s *Server) ListColleagues(ctx context.Context, req *ListColleaguesRequest)
}
}

if slices.Contains(types, "Labels") || userInfo.SuperUser {
if len(resp.Colleagues) > 0 && (slices.Contains(types, "Labels") || userInfo.SuperUser) {
userIds := []jet.Expression{}
for _, colleague := range resp.Colleagues {
userIds = append(userIds, jet.Int32(colleague.UserId))
Expand Down

0 comments on commit 8bee216

Please sign in to comment.