1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-27 08:31:20 +02:00

Fix linter

This commit is contained in:
Miguel de la Cruz 2022-12-07 17:30:55 +01:00
parent 7443021254
commit 13be23ddad

View File

@ -747,7 +747,7 @@ func (s *MattermostAuthLayer) SearchBoardsForUser(term, userID string, includePu
// they're open, regardless of the user membership.
// Search is case-insensitive.
func (s *MattermostAuthLayer) SearchBoardsForUserInTeam(teamID, term, userID string) ([]*model.Board, error) {
s.logger.Info("++++++ Calling the new SearchBoardsForUserInTeam implementation")
s.logger.Info("!!!!!! Calling the new SearchBoardsForUserInTeam implementation")
plainQuery := `
(SELECT
b.id,
@ -821,7 +821,7 @@ FROM
conditions := []string{}
for _, word := range strings.Split(strings.TrimSpace(term), " ") {
conditions = append(conditions, "WHERE lower(b.title) LIKE %" + strings.ToLower(word) + "%")
conditions = append(conditions, "WHERE lower(b.title) LIKE %"+strings.ToLower(word)+"%")
}
conditionsStr := strings.Join(conditions, " AND ")