mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-18 16:39:25 +00:00
Change db.Exec to Update method
This commit is contained in:
parent
388533f97a
commit
d132f84323
@ -77,7 +77,12 @@ func MoveIssuesOnProjectColumn(ctx context.Context, doer *user_model.User, colum
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = db.Exec(ctx, "UPDATE `project_issue` SET project_board_id=?, sorting=? WHERE issue_id=? AND project_id=?", column.ID, sorting, issueID, column.ProjectID)
|
_, err = db.GetEngine(ctx).Table("project_issue").
|
||||||
|
Where("issue_id = ? AND project_id = ?", issueID, column.ProjectID).
|
||||||
|
Update(map[string]any{
|
||||||
|
"project_board_id": column.ID,
|
||||||
|
"sorting": sorting,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user