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

Commit 8c80535e by Mick Hansen

fix bad if

1 parent ad7503b1
Showing with 1 additions and 1 deletions
...@@ -244,7 +244,7 @@ HasMany.prototype.injectGetter = function(obj) { ...@@ -244,7 +244,7 @@ HasMany.prototype.injectGetter = function(obj) {
return Model.all(options); return Model.all(options);
}; };
if (!this.accessors.count) { if (this.accessors.count) {
obj[this.accessors.count] = function(options) { obj[this.accessors.count] = function(options) {
var model = association.target var model = association.target
, sequelize = model.sequelize; , sequelize = model.sequelize;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!