mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-27 08:31:20 +02:00
Fix linter
This commit is contained in:
parent
7443021254
commit
13be23ddad
@ -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 ")
|
||||
|
Loading…
Reference in New Issue
Block a user