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

Commit 4d7444b5 by Overlook Motel

better way of identifying daoFactories

1 parent 91aef96d
Showing with 2 additions and 1 deletions
var Utils = require("../../utils")
, SqlString = require("../../sql-string")
, daoFactory = require("../../dao-factory")
module.exports = (function() {
var QueryGenerator = {
......@@ -364,7 +365,7 @@ module.exports = (function() {
break
}
if (!Utils._.isPlainObject(item)) {
if (item instanceof daoFactory) {
item = {model: item}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!