Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceful-james committed Apr 24, 2022
1 parent aa51e6c commit 6798b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dataloader/ecto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ if Code.ensure_loaded?(Ecto) do
records = records |> Enum.map(&Map.put(&1, field, empty))

results =
if query.limit || query.offset do
if query.limit || query.offset || query.order_bys do
records
|> preload_lateral(field, query, source.repo, repo_opts)
else
Expand Down

0 comments on commit 6798b32

Please sign in to comment.