不要怂,就是干,撸起袖子干!

Commit 7c4611d0 by Mick Hansen

get rid of _.omit

1 parent b26fce14
Showing with 5 additions and 2 deletions
......@@ -361,9 +361,9 @@ module.exports = (function() {
primaryKeyAttribute = includeOptions.daoFactory.primaryKeyAttribute
}
data.forEach(function (row) {
data.forEach(function parseRow(row) {
row = Dot.transform(row)
calleeData = _.omit(row, calleeDataIgnore)
calleeData = row
// If there are :M associations included we need to see if the main result of the row has already been identified
if (options.checkExisting) {
......@@ -402,6 +402,9 @@ module.exports = (function() {
}
existingResult.__children[attrName].push(row[attrName])
// Remove from main
delete existingResult[attrName]
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!