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

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

    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
