mirror of
https://github.com/mattermost/focalboard.git
synced 2025-04-24 14:07:58 -04:00
Fixed bug where migration failed if no teamless board existed
This commit is contained in:
parent
98ca5b5691
commit
e51edd4df5
1 changed files with 6 additions and 1 deletions
|
@ -557,7 +557,12 @@ func (s *SQLStore) getDMBoards(tx sq.BaseRunner) ([]*model.Board, error) {
|
|||
},
|
||||
}
|
||||
|
||||
return s.getBoardsByCondition(tx, conditions)
|
||||
boards, err := s.getBoardsByCondition(tx, conditions)
|
||||
if err != nil && errors.Is(err, sql.ErrNoRows) {
|
||||
return []*model.Board{}, nil
|
||||
}
|
||||
|
||||
return boards, err
|
||||
}
|
||||
|
||||
// The destination is selected as the first team where all members
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue