Skip to content

Commit

Permalink
fix: Ensure runnab;e urls use https protocol [PT-186645347]
Browse files Browse the repository at this point in the history
Some of the NGSA activities use http:// urls for the runnable sequence or activity and this causes the Firebase function to not find the resources as they are stored there using https urls.
  • Loading branch information
dougmartin committed Jan 10, 2024
1 parent 77e5ab0 commit ac30605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query-creator/create-query/steps/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports.getResource = async (runnableUrl, reportServiceSource) => {
const activityUrl = searchParams.get("activity");
if (sequenceUrl || activityUrl) {
runnableUrl = sequenceUrl || activityUrl;
runnableUrl = runnableUrl.replace("api/v1/", "").replace(".json", "");
runnableUrl = runnableUrl.replace(/http\:/, "https:").replace("api/v1/", "").replace(".json", "");
}
}
const params = {
Expand Down

0 comments on commit ac30605

Please sign in to comment.