Skip to content

Commit

Permalink
fix(migrate): create properties when nil
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Nov 8, 2024
1 parent f838eaf commit 84e1e89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func (segment *Segment) migrate(version int) {
return
}

if segment.Properties == nil {
segment.Properties = properties.Map{}
}

// Cache settings, the default is now 24h so we have to respect this being disabled previously
if !segment.Properties.GetBool("cache_version", false) {
segment.Properties[properties.CacheDuration] = cache.NONE
Expand Down

0 comments on commit 84e1e89

Please # to comment.