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

Commit b545767f by Luc Verdier Committed by Sushant

fix(model): omit `offset` in findSeparate (#8987)

1 parent 7542b7e3
Showing with 2 additions and 2 deletions
...@@ -1664,7 +1664,7 @@ class Model { ...@@ -1664,7 +1664,7 @@ class Model {
}, []), }, []),
_.assign( _.assign(
{}, {},
_.omit(options, 'include', 'attributes', 'order', 'where', 'limit', 'plain', 'scope'), _.omit(options, 'include', 'attributes', 'order', 'where', 'limit', 'offset', 'plain', 'scope'),
{include: include.include || []} {include: include.include || []}
) )
); );
...@@ -1672,7 +1672,7 @@ class Model { ...@@ -1672,7 +1672,7 @@ class Model {
return include.association.get(results, _.assign( return include.association.get(results, _.assign(
{}, {},
_.omit(options, 'include', 'attributes', 'order', 'where', 'limit', 'plain'), _.omit(options, 'include', 'attributes', 'order', 'where', 'limit', 'offset', 'plain'),
_.omit(include, 'parent', 'association', 'as') _.omit(include, 'parent', 'association', 'as')
)).then(map => { )).then(map => {
for (const result of results) { for (const result of results) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!