From 2515622973785a2e19b2f38a710640ec21a73526 Mon Sep 17 00:00:00 2001 From: Pascal Knoth Date: Sun, 17 Nov 2024 16:36:56 +0100 Subject: [PATCH] [identity] fix user metadata edition --- .../lib/boruta_identity/accounts/schemas/user.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/boruta_identity/lib/boruta_identity/accounts/schemas/user.ex b/apps/boruta_identity/lib/boruta_identity/accounts/schemas/user.ex index 3cd5fc0b..4c6bc605 100644 --- a/apps/boruta_identity/lib/boruta_identity/accounts/schemas/user.ex +++ b/apps/boruta_identity/lib/boruta_identity/accounts/schemas/user.ex @@ -201,9 +201,9 @@ defmodule BorutaIdentity.Accounts.User do _ -> false end) |> Enum.map(fn - {_key, value} when is_map(value) -> value {key, value} -> - {key, %{"value" => value, "status" => "valid"}} + # TODO default display + {key, %{"value" => value, "status" => "valid", "display" => []}} end) |> Enum.into(%{}) end