display_name is functional for unsubscribe data

This commit is contained in:
2023-02-17 14:51:43 +01:00
parent 49de2f22c4
commit 193f5dfb6f

View File

@@ -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,