Skip to content

Commit

Permalink
[fix] Properly import used functions
Browse files Browse the repository at this point in the history
[close #458]
  • Loading branch information
cpjolicoeur committed May 23, 2024
1 parent 19f33c0 commit 9c2cb72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/torch/pagination.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ defmodule Torch.Pagination do
@type filter_config() :: [Filtrex.Type.Config.t()]
@type t() :: {:ok, page()} | {:error | any}

import Ecto.Query, only: [order_by: 2]

defmacro __using__(opts) do
{:__aliases__, _, module_name} = Keyword.fetch!(opts, :model)
{:__aliases__, _, repo_name} = Keyword.fetch!(opts, :repo)
Expand Down

0 comments on commit 9c2cb72

Please sign in to comment.