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

Commit 69c8dc40 by Mick Hansen

fix(separate): dont attempt to load associations if parent results are empty, fixes #4217

1 parent c52cf3d8
Showing with 2 additions and 0 deletions
......@@ -1342,6 +1342,8 @@ Model.$findSeperate = function(results, options) {
var original = results;
if (options.plain) results = [results];
if (!results.length) return original;
return Promise.map(options.include, function (include) {
if (!include.separate) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!