From 76b6297a8af3ea46b658f1cc4b93bae80e22f34d Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 28 May 2020 18:59:43 -0400 Subject: [PATCH] fix tags indexing error after batch update --- lib/philomena/images.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/images.ex b/lib/philomena/images.ex index 5ce28385..32327400 100644 --- a/lib/philomena/images.ex +++ b/lib/philomena/images.ex @@ -512,7 +512,7 @@ defmodule Philomena.Images do |> case do {:ok, _} = result -> reindex_images(image_ids) - Tags.reindex_tags(added_tags ++ removed_tags) + Tags.reindex_tags(Enum.map(added_tags ++ removed_tags, &%{id: &1})) result