Fix bug with destroying %TranslationUnit{} struct
This commit is contained in:
@ -23,7 +23,7 @@ defmodule Outlook.Translations.TranslationUnitsMap do
|
||||
|
||||
def dump(tumap) when is_map(tumap) do
|
||||
serialized_map = for {key, val} <- tumap do
|
||||
{key, Jason.encode!(val |> Map.delete(:eph))}
|
||||
{key, Jason.encode!(val |> Map.put(:eph, %{}))}
|
||||
end
|
||||
|> Enum.into(%{})
|
||||
{:ok, serialized_map}
|
||||
|
||||
Reference in New Issue
Block a user