Skip to content

Commit

Permalink
fix: update example adapter to match recent API changes (codedge-llc#215
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ream88 authored Nov 26, 2021
1 parent 78c3bd7 commit 54735f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/pigeon/adapter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ defmodule Pigeon.Adapter do
end
@impl true
def handle_push(%{response: nil} = notification, on_response, _state) do
process_on_response(on_response, %{notification | response: :success})
def handle_push(%{response: nil} = notification, state) do
process_on_response(%{notification | response: :success})
{:noreply, state}
end
def handle_push(notification, on_response, state) do
process_on_response(on_response, notification)
def handle_push(notification, state) do
process_on_response(notification)
{:noreply, state}
end
end
Expand Down

0 comments on commit 54735f8

Please sign in to comment.