From fd553429ec81b5a967ef900b276495e5f8ef62bc Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Sun, 28 Nov 2021 16:33:31 +0100 Subject: [PATCH] Include collectives in organization(s) and sponsor(s) member stats --- src/server/lib/graphql.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/lib/graphql.js b/src/server/lib/graphql.js index 15a31860..c5e6e175 100644 --- a/src/server/lib/graphql.js +++ b/src/server/lib/graphql.js @@ -100,6 +100,7 @@ export async function fetchMembersStats(variables) { all users organizations + collectives } } } @@ -108,7 +109,7 @@ export async function fetchMembersStats(variables) { processResult = (res) => { let name, count; if (backerType.match(/sponsor/i) || backerType.match(/organization/i)) { - count = res.Collective.stats.backers.organizations; + count = res.Collective.stats.backers.organizations + res.Collective.stats.backers.collectives; name = backerType; } else if (backerType.match(/backer/i) || backerType.match(/individual/i)) { count = res.Collective.stats.backers.users;