Skip to content

Commit 9d1b0b2

Browse files
committed
replace broadcast! with broadcast for PubSub calls
1 parent f2ac03c commit 9d1b0b2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/algora/bounties/bounties.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ defmodule Algora.Bounties do
2929
| {:status, :open | :paid}
3030
| {:tech_stack, [String.t()]}
3131

32-
def broadcast! do
33-
Phoenix.PubSub.broadcast!(Algora.PubSub, "bounties:all", :bounties_updated)
32+
def broadcast do
33+
Phoenix.PubSub.broadcast(Algora.PubSub, "bounties:all", :bounties_updated)
3434
end
3535

3636
def subscribe do
@@ -50,7 +50,7 @@ defmodule Algora.Bounties do
5050

5151
case Repo.insert(changeset) do
5252
{:ok, bounty} ->
53-
broadcast!()
53+
broadcast()
5454
{:ok, bounty}
5555

5656
{:error, %{errors: [ticket_id: {_, [constraint: :unique, constraint_name: _]}]}} ->

lib/algora/payments/payments.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ defmodule Algora.Payments do
1414

1515
require Logger
1616

17-
def broadcast! do
18-
Phoenix.PubSub.broadcast!(Algora.PubSub, "payments:all", :payments_updated)
17+
def broadcast do
18+
Phoenix.PubSub.broadcast(Algora.PubSub, "payments:all", :payments_updated)
1919
end
2020

2121
def subscribe do

lib/algora_web/controllers/webhooks/stripe_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ defmodule AlgoraWeb.Webhooks.StripeController do
3333
if count == 0 do
3434
{:error, :no_transactions_found}
3535
else
36-
Payments.broadcast!()
36+
Payments.broadcast()
3737
{:ok, nil}
3838
end
3939
end

0 commit comments

Comments
 (0)