Skip to content

Commit

Permalink
remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinxin90 committed Jul 13, 2020
1 parent 335df9a commit 04dacd4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,14 @@ function transformComplexObject(json_doc, template) {
let val;
let expression;
const paths = extractPathsFromTemplate(template);
console.log('paths', paths);
const common_path = findLongestCommonPath(paths);
console.log('common path', common_path)
if (common_path) {
trimmed_json_doc = jsonata(common_path).evaluate(json_doc);
trimmed_template = removeCommonPathFromTemplate(template, common_path);
} else {
trimmed_json_doc = json_doc;
trimmed_template = template;
}
console.log('trimmed', trimmed_json_doc)
if (_.isArray(trimmed_json_doc)) {
new_doc = transformArrayOfSimpleObject(trimmed_json_doc, trimmed_template)
} else {
Expand Down

0 comments on commit 04dacd4

Please sign in to comment.