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

Commit 7ab0416f by Mick Hansen

check that options.where exists before checking for key in it

1 parent d8945525
Showing with 1 additions and 1 deletions
...@@ -774,7 +774,7 @@ module.exports = (function() { ...@@ -774,7 +774,7 @@ module.exports = (function() {
options.attributes = Object.keys(this.rawAttributes); options.attributes = Object.keys(this.rawAttributes);
} }
if (options.limit === undefined && !options.where[this.primaryKeyAttribute]) { if (options.limit === undefined && !(options.where && options.where[this.primaryKeyAttribute])) {
options.limit = 1; options.limit = 1;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!