fix: invalid db query for guests
This commit is contained in:
parent
2e9e6ef771
commit
33987d5c5b
1 changed files with 2 additions and 2 deletions
|
@ -380,8 +380,8 @@ func (s *MattermostAuthLayer) SearchUsersByTeam(teamID string, searchQuery strin
|
|||
boardsIDs = append(boardsIDs, board.ID)
|
||||
}
|
||||
query = query.
|
||||
Join(s.tablePrefix + "board_members as bm ON bm.UserID = u.ID").
|
||||
Where(sq.Eq{"bm.BoardId": boardsIDs})
|
||||
Join(s.tablePrefix + "board_members as bm ON bm.user_id = u.ID").
|
||||
Where(sq.Eq{"bm.board_id": boardsIDs})
|
||||
}
|
||||
|
||||
rows, err := query.Query()
|
||||
|
|
Loading…
Reference in a new issue