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

Commit dda90fc5 by Sascha Depold

Merge pull request #271 from edlin/master

Localized optcpy in lib/dao-factory.js
2 parents c5c1ea6d d7d24fc2
Showing with 1 additions and 1 deletions
...@@ -95,7 +95,7 @@ module.exports = (function() { ...@@ -95,7 +95,7 @@ module.exports = (function() {
//right now, the caller (has-many-double-linked) is in charge of the where clause //right now, the caller (has-many-double-linked) is in charge of the where clause
DAOFactory.prototype.findAllJoin = function(joinTableName, options) { DAOFactory.prototype.findAllJoin = function(joinTableName, options) {
optcpy = Utils._.clone(options) var optcpy = Utils._.clone(options)
optcpy.attributes = optcpy.attributes || [Utils.addTicks(this.tableName)+".*"] optcpy.attributes = optcpy.attributes || [Utils.addTicks(this.tableName)+".*"]
return this.QueryInterface.select(this, [this.tableName, joinTableName], optcpy) return this.QueryInterface.select(this, [this.tableName, joinTableName], optcpy)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!