Fixed bug where migration failed if no teamless board existed (#2648)
This commit is contained in:
parent
d0d18f207f
commit
3e07ba0d9e
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…
Reference in a new issue