Fix perennial :atom issue

This commit is contained in:
Thelonius Kort
2023-01-23 15:37:47 +01:00
parent 0a10a5c12c
commit 2db0ff06ac
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ defmodule Outlook.Translations.TranslationUnitsMap do
def load(serialized_map) when is_map(serialized_map) do
tumap = for {key, val_str} <- serialized_map do
val_map = Jason.decode!(val_str, keys: :atoms!)
val_map = Jason.decode!(val_str, keys: :atoms)
val_tu = struct(TranslationUnit, %{val_map | status: String.to_atom(val_map.status)})
{key, val_tu}
end