From 7e8cbbf377b27a7f5dd9af0bc6605c01f302f5d9 Mon Sep 17 00:00:00 2001 From: Allan Bowe <4420615+allanbowe@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:51:32 +0000 Subject: [PATCH 1/2] fix: enable embedded LFs in JS STP vars --- api/src/controllers/internal/createJSProgram.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/controllers/internal/createJSProgram.ts b/api/src/controllers/internal/createJSProgram.ts index 15c035a6..ae459577 100644 --- a/api/src/controllers/internal/createJSProgram.ts +++ b/api/src/controllers/internal/createJSProgram.ts @@ -15,7 +15,7 @@ export const createJSProgram = async ( ) => { const varStatments = Object.keys(vars).reduce( (computed: string, key: string) => - `${computed}const ${key} = '${vars[key]}';\n`, + `${computed}const ${key} = \`${vars[key]}\`;\n`, '' ) From 068edfd6a59066c0e6fdcbfdce14360039c6d6e8 Mon Sep 17 00:00:00 2001 From: Allan Date: Tue, 7 Nov 2023 20:39:05 +0000 Subject: [PATCH 2/2] chore: lint fix --- api/src/utils/upload.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/utils/upload.ts b/api/src/utils/upload.ts index d4a41196..f85cf57a 100644 --- a/api/src/utils/upload.ts +++ b/api/src/utils/upload.ts @@ -51,9 +51,8 @@ export const generateFileUploadSasCode = async ( let fileCount = 0 const uploadedFiles: UploadedFiles[] = [] - const sasSessionFolderList: string[] = await listFilesInFolder( - sasSessionFolder - ) + const sasSessionFolderList: string[] = + await listFilesInFolder(sasSessionFolder) sasSessionFolderList.forEach((fileName) => { let fileCountString = fileCount < 100 ? '0' + fileCount : fileCount fileCountString = fileCount < 10 ? '00' + fileCount : fileCount