mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-04-12 19:41:51 -05:00
[defaultDataForPath.js] fix getImagePath query and update object (#334)
path[s] result on findImage returns web paths, we need file path instead.
This commit is contained in:
@@ -183,7 +183,11 @@ function getImagePath(ID) {
|
||||
"\
|
||||
query findImage($id: ID) {\
|
||||
findImage(id: $id) {\
|
||||
path\
|
||||
visual_files {\
|
||||
... on ImageFile {\
|
||||
path\
|
||||
}\
|
||||
}\
|
||||
}\
|
||||
}";
|
||||
|
||||
@@ -197,7 +201,7 @@ query findImage($id: ID) {\
|
||||
return null;
|
||||
}
|
||||
|
||||
var path = findImage.path;
|
||||
var path = findImage["visual_files"][0].path;
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user