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

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() {
if (subQuery && mainAttributes) {
if (factory.hasPrimaryKeys) {
factory.primaryKeyAttributes.forEach(function(keyAtt){
if(mainAttributes.indexOf(keyAtt) == -1){
mainAttributes.push(keyAtt)
}
})
factory.primaryKeyAttributes.forEach(function(keyAtt){
if(mainAttributes.indexOf(keyAtt) == -1){
mainAttributes.push(keyAtt)
}
})
} 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!