mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Separate graphql API from rest of the system (#2503)
* Move graphql generated files to api * Refactor identify options * Remove models.StashBoxes * Move ScraperSource to scraper package * Rename field strategy enums * Rename identify.TaskOptions to Options
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
|
||||
type cleanJob struct {
|
||||
txnManager models.TransactionManager
|
||||
input models.CleanMetadataInput
|
||||
input CleanMetadataInput
|
||||
scanSubs *subscriptionManager
|
||||
}
|
||||
|
||||
@@ -488,7 +488,7 @@ func (j *cleanJob) deleteImage(ctx context.Context, imageID int) {
|
||||
}, nil)
|
||||
}
|
||||
|
||||
func getStashFromPath(pathToCheck string) *models.StashConfig {
|
||||
func getStashFromPath(pathToCheck string) *config.StashConfig {
|
||||
for _, s := range config.GetInstance().GetStashPaths() {
|
||||
if fsutil.IsPathInDir(s.Path, filepath.Dir(pathToCheck)) {
|
||||
return s
|
||||
@@ -497,7 +497,7 @@ func getStashFromPath(pathToCheck string) *models.StashConfig {
|
||||
return nil
|
||||
}
|
||||
|
||||
func getStashFromDirPath(pathToCheck string) *models.StashConfig {
|
||||
func getStashFromDirPath(pathToCheck string) *config.StashConfig {
|
||||
for _, s := range config.GetInstance().GetStashPaths() {
|
||||
if fsutil.IsPathInDir(s.Path, pathToCheck) {
|
||||
return s
|
||||
|
||||
Reference in New Issue
Block a user