From 3074a291c6b05a92064de09d0f587995e4cf99fd Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 26 Dec 2021 19:50:09 -0500 Subject: [PATCH] Bump timeout for autocomplete generation --- lib/philomena/autocomplete.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/autocomplete.ex b/lib/philomena/autocomplete.ex index dd6f26f4..4cbf9b7d 100644 --- a/lib/philomena/autocomplete.ex +++ b/lib/philomena/autocomplete.ex @@ -125,7 +125,7 @@ defmodule Philomena.Autocomplete do |> having([_, t], fragment("(100 * count(*)::float / LEAST(?, 100)) > 50", ^images_count)) |> select([_, t], t.id) |> limit(8) - |> Repo.all() + |> Repo.all(timeout: 120_000) {name, assoc_ids} end)