From 9c2cb72333fe6fd649edc85d1c7e2b533584f757 Mon Sep 17 00:00:00 2001 From: Craig P Jolicoeur Date: Thu, 23 May 2024 15:02:15 -0400 Subject: [PATCH] [fix] Properly import used functions [close #458] --- lib/torch/pagination.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/torch/pagination.ex b/lib/torch/pagination.ex index ad6be76f..051d4559 100644 --- a/lib/torch/pagination.ex +++ b/lib/torch/pagination.ex @@ -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)