mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-04-12 19:41:51 -05:00
[DefaultDataForPath] Fix GraphQL query for galleries (#610)
This commit is contained in:
@@ -208,9 +208,11 @@ query findImage($id: ID) {\
|
||||
function getGalleryPath(ID) {
|
||||
var query =
|
||||
"\
|
||||
query findGallery($id: ID) {\
|
||||
query findGallery($id: ID!) {\
|
||||
findGallery(id: $id) {\
|
||||
path\
|
||||
folder {\
|
||||
path\
|
||||
}\
|
||||
}\
|
||||
}";
|
||||
|
||||
@@ -224,7 +226,7 @@ query findGallery($id: ID) {\
|
||||
return null;
|
||||
}
|
||||
|
||||
var path = findGallery.path;
|
||||
var path = findGallery.folder.path;
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user