Skip to content

Commit

Permalink
op find json parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Nov 5, 2024
1 parent d8ef6d9 commit bff46ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared/api/utils/shared_ops_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -3453,14 +3453,16 @@ export default class SharedOpsUtil extends SharedUtil
getOpEnvironmentUrls(opIdentifier)
{
if (!opIdentifier) return [];
const env = this._cables.getEnv();
return [
new URL("https://dev.cables.gl/api/doc/ops/" + opIdentifier),
new URL("https://cables.gl/api/doc/ops/" + opIdentifier)
new URL("https://dev.cables.gl/api/doc/ops/" + opIdentifier + "?fromEnv=" + env),
new URL("https://cables.gl/api/doc/ops/" + opIdentifier + "?fromEnv=" + env)
];
}

getOpEnvironmentDocs(opIdentifier, cb)
{
if (!opIdentifier) return ("OP_NOT_FOUND", null);
const envUrls = this.getOpEnvironmentUrls(opIdentifier);

const promises = [];
Expand Down

0 comments on commit bff46ec

Please sign in to comment.