stash/internal/api/resolver_mutation_scraper.go

18 lines
284 B
Go

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