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

Commit ff693b29 by Dr. Evil

Remove unused code

1 parent dd326028
Showing with 0 additions and 15 deletions
......@@ -209,21 +209,6 @@ module.exports = (function() {
attributes: this.options.originalAttributes || this.options.attributes,
raw: true
});
} else if (this.options.hasJoinTableModel === true) {
result = results.map(function(result) {
result = Dot.transform(result);
var joinTableData = result[this.options.joinTableModel.name]
, joinTableDAO = this.options.joinTableModel.build(joinTableData, { isNewRecord: false, isDirty: false, raw: true })
, mainDao;
delete result[this.options.joinTableModel.name];
mainDao = this.callee.build(result, { isNewRecord: false, isDirty: false, raw: true });
mainDao[this.options.joinTableModel.name] = joinTableDAO;
return mainDao;
}.bind(this));
// Regular queries
} else {
result = this.callee.bulkBuild(results, {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!