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

Commit ec6bec87 by Pedro Pereira

Code rewrite

1 parent 74f07b6c
Showing with 1 additions and 7 deletions
...@@ -570,13 +570,7 @@ module.exports = (function() { ...@@ -570,13 +570,7 @@ module.exports = (function() {
if (options.limit || options.offset) { if (options.limit || options.offset) {
if (!options.order || (options.include && !subQueryOrder.length)) { if (!options.order || (options.include && !subQueryOrder.length)) {
if(!isSubQuery && options.order) { fragment += (options.order && !isSubQuery) ? ', ' : ' ORDER BY ';
fragment += ', ';
}
else {
fragment += ' ORDER BY ';
}
fragment += this.quoteIdentifier(model.primaryKeyAttribute); fragment += this.quoteIdentifier(model.primaryKeyAttribute);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!