Skip to content

Commit

Permalink
SK-704 added encodeURI option default true in get
Browse files Browse the repository at this point in the history
  • Loading branch information
skyflow-lipsa committed Oct 20, 2023
1 parent fe8f842 commit 0be8bf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vault-api/core/Reveal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ const getSkyflowIdRecordsFromVault = (
paramList += `skyflow_ids=${skyflowId}&`;
});

if(options && Object.prototype.hasOwnProperty.call(options, 'encodeURI') && options?.encodeURI === true) {
if (options && Object.prototype.hasOwnProperty.call(options, 'encodeURI') && options?.encodeURI === false){
skyflowIdRecord.columnValues?.forEach((column) => {
var encode_column_value = encodeURIComponent(column)
paramList += `column_name=${skyflowIdRecord.columnName}&column_values=${encode_column_value}&`;
paramList += `column_name=${skyflowIdRecord.columnName}&column_values=${column}&`;
});
} else {
skyflowIdRecord.columnValues?.forEach((column) => {
paramList += `column_name=${skyflowIdRecord.columnName}&column_values=${column}&`;
var encode_column_value = encodeURIComponent(column)
paramList += `column_name=${skyflowIdRecord.columnName}&column_values=${encode_column_value}&`;
});
}

Expand Down

0 comments on commit 0be8bf9

Please sign in to comment.