From f127eaa7c83962452687506d34b6dbfdac3895c8 Mon Sep 17 00:00:00 2001 From: skyflow-lipsa Date: Thu, 19 Oct 2023 15:44:49 +0530 Subject: [PATCH] SK-704 add encodeURI options in get --- src/vault-api/core/Reveal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vault-api/core/Reveal.ts b/src/vault-api/core/Reveal.ts index c59e965..89d5f39 100644 --- a/src/vault-api/core/Reveal.ts +++ b/src/vault-api/core/Reveal.ts @@ -65,7 +65,7 @@ const getSkyflowIdRecordsFromVault = ( paramList += `skyflow_ids=${skyflowId}&`; }); - if(Object.prototype.hasOwnProperty.call(options, 'encodeURI') && options?.encodeURI == true) { + if(Object.prototype.hasOwnProperty.call(options, 'encodeURI') && options?.encodeURI === true) { skyflowIdRecord.columnValues?.forEach((column) => { var encode_column_value = encodeURIComponent(column) paramList += `column_name=${skyflowIdRecord.columnName}&column_values=${encode_column_value}&`;