Refresh config when paths change (#217)

This commit is contained in:
WithoutPants
2019-11-18 08:42:24 +11:00
committed by Leopere
parent 5963844191
commit 23657408de
3 changed files with 8 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import (
"path/filepath"
"github.com/stashapp/stash/pkg/logger"
"github.com/stashapp/stash/pkg/manager"
"github.com/stashapp/stash/pkg/manager/config"
"github.com/stashapp/stash/pkg/models"
"github.com/stashapp/stash/pkg/utils"
@@ -75,6 +76,8 @@ func (r *mutationResolver) ConfigureGeneral(ctx context.Context, input models.Co
return makeConfigGeneralResult(), err
}
manager.GetInstance().RefreshConfig()
return makeConfigGeneralResult(), nil
}