1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-21 16:55:06 -05:00

fix: f3: update milestone is_closed & deadline_unix

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

View file

@ -117,7 +117,7 @@ func (o *milestone) Get(ctx context.Context) bool {
func (o *milestone) Patch(ctx context.Context) { func (o *milestone) Patch(ctx context.Context) {
o.Trace("%d", o.forgejoMilestone.ID) o.Trace("%d", o.forgejoMilestone.ID)
if _, err := db.GetEngine(ctx).ID(o.forgejoMilestone.ID).Cols("name", "description").Update(o.forgejoMilestone); err != nil { if _, err := db.GetEngine(ctx).ID(o.forgejoMilestone.ID).Cols("name", "description", "is_closed", "deadline_unix").Update(o.forgejoMilestone); err != nil {
panic(fmt.Errorf("UpdateMilestoneCols: %v %v", o.forgejoMilestone, err)) panic(fmt.Errorf("UpdateMilestoneCols: %v %v", o.forgejoMilestone, err))
} }
} }