Skip to content

Commit

Permalink
Change Poxa.Supervisor to check if web hook was configured
Browse files Browse the repository at this point in the history
  • Loading branch information
edgurgel committed Jun 24, 2018
1 parent 7d1e1e1 commit 35aa381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/poxa/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule Poxa.Supervisor do
event_worker = worker(GenEvent, [[name: Poxa.Event]])
subscription_worker = worker(Watcher, [Poxa.Event, Poxa.SubscriptionHandler, []])
children = [event_worker, subscription_worker]
children = if web_hook do
children = if to_string(web_hook) != "" do
web_wook_supervisor = worker(Poxa.WebHook.Supervisor, [])
children ++ [web_wook_supervisor]
else
Expand Down

0 comments on commit 35aa381

Please sign in to comment.