fix: update env variable usage for sse

This commit is contained in:
guarzo
2025-07-01 20:25:48 -04:00
parent 00cbc77f1d
commit 7b83ed8205
5 changed files with 62 additions and 21 deletions

View File

@@ -25,7 +25,7 @@ defmodule WandererAppWeb.Api.EventsController do
Logger.info("SSE stream requested for map #{map_identifier}")
# Check if SSE is enabled
unless Application.get_env(:wanderer_app, :sse, [])[:enabled] do
unless WandererApp.Env.sse_enabled?() do
conn
|> put_status(:service_unavailable)
|> put_resp_content_type("text/plain")