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

Commit 67b0c6c6 by Michael Weibel

Merge branch 'fix-belongs-to-where-params' of github.com:mweibel/sequelize into …

…fix-belongs-to-where-params
2 parents ac90f925 1e56344e
Showing with 2 additions and 0 deletions
...@@ -44,6 +44,8 @@ module.exports = (function() { ...@@ -44,6 +44,8 @@ module.exports = (function() {
if (!Utils._.isUndefined(params)) { if (!Utils._.isUndefined(params)) {
if (!Utils._.isUndefined(params.where)) { if (!Utils._.isUndefined(params.where)) {
params.where = Utils._.extend({id:id}, params.where) params.where = Utils._.extend({id:id}, params.where)
} else {
params.where = {id: id}
} }
} else { } else {
params = id params = id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!