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

Commit 6a3d2ee3 by overlookmotel

Delete include array if empty

1 parent 13464c59
Showing with 3 additions and 0 deletions
......@@ -1713,6 +1713,9 @@ module.exports = (function() {
// if include is not an array, wrap in an array
if (!Array.isArray(options.include)) {
options.include = [options.include];
} else if (!options.include.length) {
delete options.include;
return;
}
// convert all included elements to { Model: Model } form
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!