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

Commit b26fce14 by Mick Hansen

lets not break tests already

1 parent efe5c171
Showing with 3 additions and 1 deletions
...@@ -376,11 +376,13 @@ module.exports = (function() { ...@@ -376,11 +376,13 @@ module.exports = (function() {
return Utils._.isEqual(_.omit(result, calleeDataIgnore), calleeData) return Utils._.isEqual(_.omit(result, calleeDataIgnore), calleeData)
}) })
} }
} else {
existingResult = null
} }
if (!existingResult) { if (!existingResult) {
results.push(existingResult = calleeData) results.push(existingResult = calleeData)
if (primaryKeyAttribute) { if (options.checkExisting && primaryKeyAttribute) {
primaryKeyMap[existingResult[primaryKeyAttribute]] = existingResult primaryKeyMap[existingResult[primaryKeyAttribute]] = existingResult
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!