Skip to content

Commit

Permalink
convert files to src
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket Panse committed Aug 26, 2016
1 parent 95c467a commit 7374645
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/converters/converter-v1-to-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ _.extend(Builders.prototype, {
requestV1.rawModeData || requestV1.data : '';
}
else {
data[mode] = requestV1.data || [];
data[mode] = requestV1.data ? _.map(requestV1.data, function (param) {
if (param.type === 'file' && param.value) {
param.src = param.value;
delete param.value;
}
return param;
}) : [];
}
return data;
},
Expand Down

0 comments on commit 7374645

Please sign in to comment.