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:
parent
946b77115e
commit
63204e8edf
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue