Skip to content

Commit

Permalink
fix upgrade bug
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jun 18, 2024
1 parent 52561c4 commit aff35e4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,14 @@ func (i *Input) setDefaults(s *Settings) *Settings { //nolint:varnamelen
}

if s.Instances == nil {
s.Instances = starrs.Instances{
starr.Lidarr.String(): []starrs.AppConfig{},
starr.Prowlarr.String(): []starrs.AppConfig{},
starr.Radarr.String(): []starrs.AppConfig{},
starr.Readarr.String(): []starrs.AppConfig{},
starr.Sonarr.String(): []starrs.AppConfig{},
starr.Whisparr.String(): []starrs.AppConfig{},
s.Instances = starrs.Instances{}
}

for _, app := range []starr.App{
starr.Lidarr, starr.Prowlarr, starr.Radarr, starr.Readarr, starr.Sonarr, starr.Whisparr,
} {
if s.Instances[app.String()] == nil {
s.Instances[app.String()] = []starrs.AppConfig{}
}
}

Expand Down

0 comments on commit aff35e4

Please sign in to comment.