display_name is functional for unsubscribe data

This commit is contained in:
Nicolas CARON 2023-02-17 14:51:43 +01:00
parent 49de2f22c4
commit 193f5dfb6f
1 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ func (h *ApplicationHandler) AgendaSubscribeEvent(w http.ResponseWriter, r *http
"subscribed_by": map[string]any{ "subscribed_by": map[string]any{
"user": map[string]any{ "user": map[string]any{
"id": current_user_token.Subject, "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{ "group": map[string]any{
"id": current_group.ID, "id": current_group.ID,
@ -392,7 +392,7 @@ func (h *ApplicationHandler) AgendaDeleteSubscribeEvent(w http.ResponseWriter, r
"unsubscribed_by": map[string]any{ "unsubscribed_by": map[string]any{
"user": map[string]any{ "user": map[string]any{
"id": current_user_token.Subject, "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{ "group": map[string]any{
"id": current_group.ID, "id": current_group.ID,