Skip to content

Commit

Permalink
fix: window os absolute path issue in migration command
Browse files Browse the repository at this point in the history
  • Loading branch information
aman19K committed Dec 4, 2023
1 parent 5ed7ee8 commit 7b68216
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ class MigrationCommand extends Command {

if (Array.isArray(config) && config.length > 0) {
let configObj = config.reduce((a, v) => {
let objArr = v.split(':');
return { ...a, [objArr[0]]: objArr[1] };
//NOTE: Temp code to handle only one spilt(Window absolute path issue).Need to replace with hardcoded config key
let [key, ...value] = v.split(':');
value = value?.length > 1 ? value?.join(':') : value?.join( );
return { ...a, [key]: value };
}, {});
set('config', mapInstance, configObj);
}
Expand Down

0 comments on commit 7b68216

Please sign in to comment.