WebPush: Return proper values for jobs.
This commit is contained in:
parent
3c828016d9
commit
f719a5b23a
2 changed files with 4 additions and 3 deletions
|
|
@ -55,11 +55,12 @@ defmodule Pleroma.Web.Push.Impl do
|
|||
|> Jason.encode!()
|
||||
|> push_message(build_sub(subscription), gcm_api_key, subscription)
|
||||
end
|
||||
|> (&{:ok, &1}).()
|
||||
end
|
||||
|
||||
def perform(_) do
|
||||
Logger.warn("Unknown notification type")
|
||||
:error
|
||||
{:error, :unknown_type}
|
||||
end
|
||||
|
||||
@doc "Push message to web"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue