Skip to content

Commit

Permalink
fix: ensure startup config overides are merged with stored configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Oct 9, 2024
1 parent 999c5c7 commit efd03ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/logflare/backends/adaptor/webhook_adaptor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ defmodule Logflare.Backends.Adaptor.WebhookAdaptor do
messages
end

defp process_data(payload, context) do
%{config: config} = Backends.Cache.get_backend(context.backend_id)
defp process_data(payload, %{startup_config: startup_config} = context) do
%{config: stored_config} = Backends.Cache.get_backend(context.backend_id)

config = Map.merge(startup_config, stored_config)

Client.send(
url: config.url,
Expand Down

0 comments on commit efd03ad

Please sign in to comment.