fix(migration): ignore tasks with empty titles
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2024-01-19 23:04:24 +01:00
parent 774859b577
commit 3ff4d81618
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -205,6 +205,11 @@ func createProjectWithEverything(s *xorm.Session, project *models.ProjectWithTas
oldid := t.ID
t.ProjectID = project.ID
err = t.Create(s, user)
if err != nil && models.IsErrTaskCannotBeEmpty(err) {
continue
}
if err != nil {
return
}