fix tag updater crashing when error happens

This commit is contained in:
Inhji 2023-06-23 06:37:48 +02:00
parent 35d6398e15
commit aa36502ddb

View file

@ -14,6 +14,10 @@ defmodule Chiya.Tags.TagUpdater do
{:ok, note} {:ok, note}
end end
def update_tags({:error, changeset}, _attrs) do
{:error, changeset}
end
@doc """ @doc """
Updates the tags for the given schema Updates the tags for the given schema