Commit 32afa079 authored by rinpatch's avatar rinpatch

Fetcher: fix local check returning unwrapped object

This resulted in error messages about failed refetches being logged.
parent 802d2498
Pipeline #19626 passed with stages
in 18 minutes and 49 seconds
......@@ -54,7 +54,7 @@ def refetch_object(%Object{data: %{"id" => id}} = object) do
{:ok, object} <- reinject_object(object, data) do
{:ok, object}
{:local, true} -> object
{:local, true} -> {:ok, object}
e -> {:error, e}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment