From ac306057aec407d2032becedd1641895af834414 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Wed, 10 Jan 2024 10:31:37 -0500 Subject: [PATCH] fix: Ensure runnab;e urls use https protocol [PT-186645347] 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. --- query-creator/create-query/steps/firebase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query-creator/create-query/steps/firebase.js b/query-creator/create-query/steps/firebase.js index 117b4c50..90e9e5c4 100644 --- a/query-creator/create-query/steps/firebase.js +++ b/query-creator/create-query/steps/firebase.js @@ -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 = {