mirror of https://github.com/stashapp/stash.git
18 lines
252 B
Go
18 lines
252 B
Go
![]() |
package api
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/stashapp/stash/pkg/scraper"
|
||
|
)
|
||
|
|
||
|
func (r *mutationResolver) ReloadScrapers(ctx context.Context) (bool, error) {
|
||
|
err := scraper.ReloadScrapers()
|
||
|
|
||
|
if err != nil {
|
||
|
return false, err
|
||
|
}
|
||
|
|
||
|
return true, nil
|
||
|
}
|