Skip to content

Commit e587ca1

Browse files
github-actions[bot]Klesh Wong
andauthored
fix: patching blueprint with timeAfter=null not working (#8517) (#8518)
Co-authored-by: Klesh Wong <zhenmian.huang@merico.dev>
1 parent ae4d8b9 commit e587ca1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)