Skip to content

Commit 60bcd4d

Browse files
kleshaction_bot
authored andcommitted
fix: patching blueprint with timeAfter=null not working (#8517)
1 parent ae4d8b9 commit 60bcd4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/server/services/blueprint.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ func PatchBlueprint(id uint64, body map[string]interface{}) (*models.Blueprint,
221221
if err != nil {
222222
return nil, err
223223
}
224+
if blueprint.SyncPolicy.TimeAfter != nil && blueprint.SyncPolicy.TimeAfter.IsZero() {
225+
blueprint.SyncPolicy.TimeAfter = nil
226+
}
224227

225228
blueprint, err = saveBlueprint(blueprint)
226229
if err != nil {

0 commit comments

Comments
 (0)