Fetcher: fix local check returning unwrapped object

This resulted in error messages about failed refetches being logged.
This commit is contained in:
rinpatch 2019-11-07 01:40:55 +03:00
parent 802d249827
commit 32afa07995
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def refetch_object(%Object{data: %{"id" => id}} = object) do
{:ok, object} <- reinject_object(object, data) do
{:ok, object}
else
{:local, true} -> object
{:local, true} -> {:ok, object}
e -> {:error, e}
end
end