This commit is contained in:
Egor Kislitsyn 2018-12-06 20:42:00 +07:00
parent 0020b22688
commit 3d492795b7

View file

@ -6,9 +6,7 @@ def render("push_subscription.json", %{subscription: subscription}) do
%{
id: to_string(subscription.id),
endpoint: subscription.endpoint,
alerts: Map.get(subscription.data, "alerts"),
# TODO: generate VAPID server key
server_key: "N/A"
alerts: Map.get(subscription.data, "alerts")
}
end
end