Compare commits
No commits in common. "819b84caf7dc5c0e8c5181a43074d15c1533d8dd" and "b8b58b14a4bfd42aa7ac2968b30cd88279181165" have entirely different histories.
819b84caf7
...
b8b58b14a4
|
@ -14,6 +14,7 @@ defmodule TuskerPush.Forwarder do
|
|||
},
|
||||
"mutable-content" => 1
|
||||
},
|
||||
"reg_id" => registration.id,
|
||||
"data" => Base.encode64(body),
|
||||
"salt" => salt,
|
||||
"pk" => key,
|
||||
|
|
|
@ -12,7 +12,7 @@ defmodule TuskerPushWeb.PushController do
|
|||
{:body, {:ok, body, conn}} <- {:body, read_body(conn)},
|
||||
{:salt, salt} when not is_nil(salt) <- get_salt(conn),
|
||||
{:key, key} when not is_nil(key) <- get_key(conn),
|
||||
context <- Map.get(params, "ctx"),
|
||||
context <- Map.get(params, "context"),
|
||||
{:forward, :ok} <- {:forward, Forwarder.forward(registration, body, salt, key, context)} do
|
||||
send_resp(conn, 200, "ok")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue