   # Handle status changes
   def handle_in("action-" <> id, %{"status" => status}, socket) do
     new_event = set_status(id, status)
+    Webhooks.on(status, %{event: new_event, team_member: current_resource(socket)})
+
     push socket, "event", %{id: id, event: new_event}
     broadcast socket, "event", %{id: id, event: new_event}
     {:noreply, socket}

defmodule Admin.EventsChannel do
  use Admin, :channel
  alias Osdi.{Repo, Event}
  import Ecto.Query
  use Guardian.Channel


    push socket, "event", %{id: new_id, event: new_event}
    broadcast socket, "event", %{id: new_id, event: new_event}
    {:noreply, socket}
  end

  defp send_events(socket) do
