Skip to content

Commit

Permalink
Merge pull request #3 from davenforce/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
trbngr authored Apr 5, 2022
2 parents 60834a5 + ec43980 commit ad2eca1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/blunt/lib/blunt/dispatch_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ defmodule Blunt.DispatchContext do
|> parse_message_opts()
end

def message_context_data(%__MODULE__{message: message, private: private}) do
Map.merge(message, private)
end

defp add_metadata(%{message_module: message_module} = context) do
metadata = Metadata.get_all(message_module)
%{context | metadata: metadata}
Expand Down

0 comments on commit ad2eca1

Please sign in to comment.