fix tags indexing error after batch update

This commit is contained in:
byte[] 2020-05-28 18:59:43 -04:00
parent a73f270ca6
commit 76b6297a8a

View file

@ -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