fix: f3: update issue is_locked

This commit is contained in:
limiting-factor 2024-08-21 12:21:13 +02:00 committed by Earl Warren
parent 168c1d806b
commit 946b77115e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -150,7 +150,7 @@ func (o *issue) Patch(ctx context.Context) {
index := node.GetID().Int64()
id := getIssueID(ctx, project, index)
o.Trace("id = %d, repo_id = %d, index = %d, assignees = %v", id, project, index, o.forgejoIssue.Assignees)
if _, err := db.GetEngine(ctx).Where("`id` = ?", id).Cols("name", "content", "is_closed", "milestone_id").Update(o.forgejoIssue); err != nil {
if _, err := db.GetEngine(ctx).Where("`id` = ?", id).Cols("name", "content", "is_closed", "milestone_id", "is_locked").Update(o.forgejoIssue); err != nil {
panic(fmt.Errorf("%v %v", o.forgejoIssue, err))
}