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

Commit 1b8d16a6 by sdepold

make DAO#all a full featured alias for Model#findAll

1 parent 8b91b3b3
Showing with 3 additions and 2 deletions
...@@ -83,8 +83,9 @@ module.exports = (function() { ...@@ -83,8 +83,9 @@ module.exports = (function() {
return this.QueryInterface.dropTable(this.tableName) return this.QueryInterface.dropTable(this.tableName)
} }
DAOFactory.prototype.all = function() { // alias for findAll
return this.findAll() DAOFactory.prototype.all = function(options) {
return this.findAll(options)
} }
DAOFactory.prototype.findAll = function(options) { DAOFactory.prototype.findAll = function(options) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!