fix tag updater crashing when error happens
This commit is contained in:
parent
35d6398e15
commit
aa36502ddb
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue