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

Commit 0e068874 by ruifortes

Update query-generator.js

1 parent efc09b71
Showing with 6 additions and 6 deletions
...@@ -537,13 +537,13 @@ module.exports = (function() { ...@@ -537,13 +537,13 @@ module.exports = (function() {
if (subQuery && mainAttributes) { if (subQuery && mainAttributes) {
if (factory.hasPrimaryKeys) { if (factory.hasPrimaryKeys) {
factory.primaryKeyAttributes.forEach(function(keyAtt){ factory.primaryKeyAttributes.forEach(function(keyAtt){
if(mainAttributes.indexOf(keyAtt) == -1){ if(mainAttributes.indexOf(keyAtt) == -1){
mainAttributes.push(keyAtt) mainAttributes.push(keyAtt)
} }
}) })
} else { } else {
mainAttributes.push("id") mainAttributes.push("id")
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!