This commit is contained in:
Egor Kislitsyn 2018-12-06 20:42:00 +07:00
parent 0020b22688
commit 3d492795b7
1 changed files with 1 additions and 3 deletions

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