1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-21 13:38:56 +02:00

fix bad query field (#3331)

This commit is contained in:
Scott Bishel 2022-07-07 13:36:22 -06:00 committed by GitHub
parent 3bbecc8117
commit 6a65f6caa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -674,7 +674,7 @@ func (s *MattermostAuthLayer) GetMembersForUser(userID string) ([]*model.BoardMe
}
query := s.getQueryBuilder().
Select("Cm.userID, B.Id").
Select("CM.userID, B.Id").
From(s.tablePrefix + "boards AS B").
Join("ChannelMembers AS CM ON B.channel_id=CM.channelId").
Where(sq.Eq{"CM.userID": userID})
@ -713,7 +713,7 @@ func (s *MattermostAuthLayer) GetMembersForBoard(boardID string) ([]*model.Board
}
query := s.getQueryBuilder().
Select("Cm.userID, B.Id").
Select("CM.userID, B.Id").
From(s.tablePrefix + "boards AS B").
Join("ChannelMembers AS CM ON B.channel_id=CM.channelId").
Where(sq.Eq{"B.id": boardID}).