Update file.html

This commit is contained in:
David Maisonave
2024-12-29 04:53:08 -05:00
parent be79fb60d1
commit 2b3612e106

View File

@@ -74,7 +74,10 @@ class PluginDupFileManager extends StashPlugin{
} }
GetFile(Mode = "getReport") { GetFile(Mode = "getReport") {
var results = this.RunPluginOperation({ "Target" : this.PageNo, "mode":Mode}); var results = this.RunPluginOperation({ "Target" : this.PageNo, "mode":Mode});
results = results.replace("var GraphQl_URL = ", "var OrigGQL_URL = "); if (this.IS_DOCKER){
GqlRoot = this.GraphQl_URL.replace("/graphql", "");
results = results.replaceAll("http://127.0.0.1:9999", GqlRoot);
}
const strResults = JSON.stringify(results); const strResults = JSON.stringify(results);
if (strResults.indexOf("INF: 'Error: Nothing to do!!!") > -1){ if (strResults.indexOf("INF: 'Error: Nothing to do!!!") > -1){
console.log("Ajax failed for function " + Mode +" and page " + this.PageNo + " with results = " + JSON.stringify(results)); console.log("Ajax failed for function " + Mode +" and page " + this.PageNo + " with results = " + JSON.stringify(results));