diff options
author | lain <lain@soykaf.club> | 2020-04-22 13:28:34 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-04-22 13:28:34 +0200 |
commit | f719a5b23a9bec4ed94f36c07e24aa1413654bae (patch) | |
tree | 1036f30a884cd964b696718891954c0f63950f65 /lib/pleroma/web/push/impl.ex | |
parent | 3c828016d9d1ecb1ebcebb00aaadec2ace37f807 (diff) | |
download | pleroma-f719a5b23a9bec4ed94f36c07e24aa1413654bae.tar.gz |
WebPush: Return proper values for jobs.
Diffstat (limited to 'lib/pleroma/web/push/impl.ex')
-rw-r--r-- | lib/pleroma/web/push/impl.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/push/impl.ex b/lib/pleroma/web/push/impl.ex index f1740a6e0..a9f893f7b 100644 --- a/lib/pleroma/web/push/impl.ex +++ b/lib/pleroma/web/push/impl.ex @@ -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" |