stash/pkg/api/resolver_mutation_scraper.go

18 lines
279 B
Go

package api
import (
"context"
"github.com/stashapp/stash/pkg/manager"
)
func (r *mutationResolver) ReloadScrapers(ctx context.Context) (bool, error) {
err := manager.GetInstance().ScraperCache.ReloadScrapers()
if err != nil {
return false, err
}
return true, nil
}