mirror of https://github.com/go-gitea/gitea.git
Fix test
This commit is contained in:
parent
58958074f2
commit
b96fe660ba
|
@ -33,7 +33,7 @@ func InsertMilestones(ms ...*issues_model.Milestone) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
if _, err = sess.Exec(ctx, "UPDATE `repository` SET num_milestones = num_milestones + ? WHERE id = ?", len(ms), ms[0].RepoID); err != nil {
|
||||
if _, err = sess.Exec("UPDATE `repository` SET num_milestones = num_milestones + ? WHERE id = ?", len(ms), ms[0].RepoID); err != nil {
|
||||
return err
|
||||
}
|
||||
return committer.Commit()
|
||||
|
|
Loading…
Reference in New Issue