Skip to content

Commit

Permalink
Reverted: changes made in the convertValue util method (#734-maarg-jobs)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Dec 6, 2024
1 parent f585b0c commit 38187cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,12 @@ const convertValue = (parameter: any) => {
try {
if(parameter.type === 'Map' || parameter.type === 'List' || parameter.type === 'Object') {
return JSON.parse(value)
} else {
} else if(parameter.type === 'String' || parameter.type === 'Date' || parameter.type === 'Time') {
return value
}
else {
return JSON.parse(value);
}
} catch {
logger.error('Unable to parse the defined value', value)
return value;
Expand Down

0 comments on commit 38187cd

Please sign in to comment.