Skip to content

Commit

Permalink
fix: ADM token refresh error response format (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
talklittle authored and hpopp committed Jan 2, 2018
1 parent 230f02d commit 985621a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pigeon/adm/worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ defmodule Pigeon.ADM.Worker do
:ok = do_push(notification, state, on_response)
{:noreply, state}
{:error, reason} ->
on_response.({:error, reason, notification})
notification = %{notification | response: reason}
on_response.(notification)
{:noreply, state}
end
end
Expand Down

0 comments on commit 985621a

Please sign in to comment.