Merge pull request from mdashlw/tag-reindex

Reindex tag itself on "Rebuild index"
This commit is contained in:
liamwhite 2025-04-03 12:56:26 -04:00 committed by GitHub
commit ee49499bc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,7 @@ defmodule PhilomenaWeb.Tag.ReindexController do
def create(conn, _params) do
{:ok, tag} = Tags.reindex_tag_images(conn.assigns.tag)
Tags.reindex_tag(tag)
conn
|> put_flash(:info, "Tag reindex started.")