From 3204701c7277ad6b7da7e4b72429207ce9cb83d0 Mon Sep 17 00:00:00 2001 From: Mayel de Borniol Date: Sun, 5 Jan 2025 13:19:58 +0000 Subject: [PATCH] misc --- lib/enums.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/enums.ex b/lib/enums.ex index 09ea479..1b75572 100644 --- a/lib/enums.ex +++ b/lib/enums.ex @@ -655,7 +655,7 @@ defmodule Bonfire.Common.Enums do |> map_filter_empty() end - def struct_to_map(struct = %{__struct__: _type}, _true) do + def struct_to_map(struct = %{__struct__: _type}, true) do struct_to_map(struct, false) |> Enum.map(&struct_to_map(&1, true)) |> Map.new()