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)
This commit is contained in:
Preston Maness 2023-08-16 16:34:49 -05:00
parent 75ec28b618
commit 027d7e1a4b

View file

@ -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']
}]
}
})