Skip to content

Commit

Permalink
fix upgrade bug (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall authored Jun 28, 2024
2 parents 83e96eb + aff35e4 commit 63ea7f7
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 63ea7f7

Please sign in to comment.