Add Unraid and Gotify notifications
This commit is contained in:
@@ -35,10 +35,12 @@ func (s *Store) LoadConfig() (model.Config, error) {
|
||||
if err := readJSON(s.configPath(), &c); err != nil {
|
||||
return c, err
|
||||
}
|
||||
c = model.NormalizeConfig(c)
|
||||
return c, model.ValidateConfig(c)
|
||||
}
|
||||
|
||||
func (s *Store) SaveConfig(c model.Config) error {
|
||||
c = model.NormalizeConfig(c)
|
||||
if err := model.ValidateConfig(c); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user