Skip to content

Commit

Permalink
Replace then by anonymous function to fix the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
altuntasfatih committed Sep 25, 2022
1 parent d16d9ff commit e63b934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/dataloader/ecto_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ defmodule Dataloader.EctoTest do

User
|> where(^Enum.to_list(args))
|> then(fn user ->
|> (fn user ->
if is_nil(sort_by) or is_nil(sort_order) do
user
else
order_by(user, {^sort_order, ^sort_by})
end
end)
end).()
end

defp query(queryable, _args, test_pid) do
Expand Down

0 comments on commit e63b934

Please sign in to comment.