From 33987d5c5b29b93c1d768defb8616334802ad6d3 Mon Sep 17 00:00:00 2001 From: Paul Esch-Laurent Date: Fri, 26 Aug 2022 11:35:36 -0500 Subject: [PATCH] fix: invalid db query for guests --- .../services/store/mattermostauthlayer/mattermostauthlayer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/services/store/mattermostauthlayer/mattermostauthlayer.go b/server/services/store/mattermostauthlayer/mattermostauthlayer.go index 988a6e759..c694a5829 100644 --- a/server/services/store/mattermostauthlayer/mattermostauthlayer.go +++ b/server/services/store/mattermostauthlayer/mattermostauthlayer.go @@ -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()