Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/algoliax/indexer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ defmodule Algoliax.Indexer do
> NOTE: filters as Map supports only `:where` and equality
"""
@callback reindex(query :: Ecto.Query.t(), opts :: Keyword.t()) ::
{:ok, [Algoliax.Response.t()]} | {:ok, list(Algoliax.Responses.t())}
{:ok, [{:ok, Algoliax.Response.t()}]} | {:ok, list(Algoliax.Responses.t())}

@doc """
Reindex all objects ([Ecto](https://hexdocs.pm/ecto/Ecto.html) specific)
Expand All @@ -408,7 +408,7 @@ defmodule Algoliax.Indexer do
- `:force_delete`: delete objects where `to_be_indexed?` is `false`
"""
@callback reindex(opts :: Keyword.t()) ::
{:ok, [Algoliax.Response.t()]} | {:ok, list(Algoliax.Responses.t())}
{:ok, [{:ok, Algoliax.Response.t()}]} | {:ok, list(Algoliax.Responses.t())}

@doc """
Reindex atomically ([Ecto](https://hexdocs.pm/ecto/Ecto.html) specific)
Expand Down