From 027d7e1a4ba0c9091e68c9824cbe51d83870f77e Mon Sep 17 00:00:00 2001 From: Preston Maness Date: Wed, 16 Aug 2023 16:34:49 -0500 Subject: [PATCH] Use more generic Account entity rather than Collective entity As per https://graphql-docs-v2.opencollective.com/types/Account >Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) --- src/serviceProviders/opencollective.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serviceProviders/opencollective.js b/src/serviceProviders/opencollective.js index 3d14692..fe38845 100644 --- a/src/serviceProviders/opencollective.js +++ b/src/serviceProviders/opencollective.js @@ -47,7 +47,7 @@ export function processURI (uri) { accessRestriction: E.ProofAccessRestriction.NOCORS, data: { url: 'https://api.opencollective.com/graphql/v2', - query: `{ "query": "query { collective(slug: \\"${match[1]}\\") { longDescription } }" }` + query: `{ "query": "query { account(slug: \\"${match[1]}\\") { longDescription } }" }` } }, response: { @@ -57,7 +57,7 @@ export function processURI (uri) { format: E.ClaimFormat.URI, encoding: E.EntityEncodingFormat.PLAIN, relation: E.ClaimRelation.CONTAINS, - path: ['data', 'collective', 'longDescription'] + path: ['data', 'account', 'longDescription'] }] } })