From 0f5ccb88a2855c54645592a0cda3b1085e388f63 Mon Sep 17 00:00:00 2001 From: Maxim Colls Date: Wed, 6 Nov 2024 10:12:40 +0100 Subject: [PATCH] Fix scope name serialization key --- .../app/serializers/decidim/stats/authorization_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decidim-stats/app/serializers/decidim/stats/authorization_serializer.rb b/decidim-stats/app/serializers/decidim/stats/authorization_serializer.rb index 7e23cf560..62121834a 100644 --- a/decidim-stats/app/serializers/decidim/stats/authorization_serializer.rb +++ b/decidim-stats/app/serializers/decidim/stats/authorization_serializer.rb @@ -15,7 +15,7 @@ def serialize user_hash:, date_of_birth: metadata["date_of_birth"], postal_code: metadata["postal_code"], - scope_name: metadata["scope_name"], + scope_name: metadata["scope"], scope_id: metadata["scope_id"], scope_code: metadata["scope_code"], gender: metadata_extras["gender"],