From aa36502ddba75ccb25cac12b0061abfa79871357 Mon Sep 17 00:00:00 2001 From: Inhji Date: Fri, 23 Jun 2023 06:37:48 +0200 Subject: [PATCH] fix tag updater crashing when error happens --- lib/chiya/tags/tag_updater.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/chiya/tags/tag_updater.ex b/lib/chiya/tags/tag_updater.ex index dfe9a98..634f97c 100644 --- a/lib/chiya/tags/tag_updater.ex +++ b/lib/chiya/tags/tag_updater.ex @@ -14,6 +14,10 @@ defmodule Chiya.Tags.TagUpdater do {:ok, note} end + def update_tags({:error, changeset}, _attrs) do + {:error, changeset} + end + @doc """ Updates the tags for the given schema