Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer committed Feb 16, 2024
1 parent 495283d commit 9f5ff84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/client/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ func (c *Client) ListGroupMembers(ctx context.Context, groupID int64, pager *Pag

sb := &strings.Builder{}
if skipDisabledUsers {
_, _ = sb.WriteString(`select user_groups.id as id, "userId", "groupId", "isAdmin", users.enabled from user_groups INNER JOIN users ON users.id = "user_groups"."userId" WHERE "groupId"=$1 and users.enabled = true ORDER BY "id" `)
_, _ = sb.WriteString(`select user_groups.id as id, "userId", "groupId", "isAdmin", users.enabled from user_groups
INNER JOIN users ON users.id = "user_groups"."userId" WHERE "groupId"=$1 and users.enabled = true ORDER BY "id" `)
} else {
_, _ = sb.WriteString(`select "id", "userId", "groupId", "isAdmin" from user_groups WHERE "groupId"=$1 ORDER BY "id" `)
}
Expand Down

0 comments on commit 9f5ff84

Please sign in to comment.