From 193f5dfb6fc63eac603e8b42bade205da208a34f Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 17 Feb 2023 14:51:43 +0100 Subject: [PATCH] display_name is functional for unsubscribe data --- handlers/application/agenda.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/application/agenda.go b/handlers/application/agenda.go index 8d54f8b..78f8e54 100644 --- a/handlers/application/agenda.go +++ b/handlers/application/agenda.go @@ -231,7 +231,7 @@ func (h *ApplicationHandler) AgendaSubscribeEvent(w http.ResponseWriter, r *http "subscribed_by": map[string]any{ "user": map[string]any{ "id": current_user_token.Subject, - "display_name": current_user_claims["display_name"], + "display_name": current_user_claims["first_name"].(string) + " " + current_user_claims["last_name"].(string), }, "group": map[string]any{ "id": current_group.ID, @@ -392,7 +392,7 @@ func (h *ApplicationHandler) AgendaDeleteSubscribeEvent(w http.ResponseWriter, r "unsubscribed_by": map[string]any{ "user": map[string]any{ "id": current_user_token.Subject, - "display_name": current_user_claims["display_name"], + "display_name": current_user_claims["first_name"].(string) + " " + current_user_claims["last_name"].(string), }, "group": map[string]any{ "id": current_group.ID,