Skip to content

Commit

Permalink
Merge pull request #19 from NFIBrokerage/update-for-ecto-compat
Browse files Browse the repository at this point in the history
Fixs this match for ecto 3.12
  • Loading branch information
pmonson711 authored Aug 28, 2024
2 parents 43c34c4 + b778b18 commit 65cd90b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fob/ordering.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ defmodule Fob.Ordering do

@spec config(%Query{}) :: [t()]
def config(%Query{order_bys: orderings} = query) do
Enum.flat_map(orderings, fn %Query.QueryExpr{expr: exprs} ->
Enum.flat_map(orderings, fn %expr_struct{expr: exprs}
when expr_struct in [
Query.QueryExpr,
Query.ByExpr
] ->
config_from_ordering_expressions(exprs, query)
end)
end
Expand Down

0 comments on commit 65cd90b

Please sign in to comment.