forked from Mirrors/doipjs
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:
parent
75ec28b618
commit
027d7e1a4b
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ export function processURI (uri) {
|
||||||
accessRestriction: E.ProofAccessRestriction.NOCORS,
|
accessRestriction: E.ProofAccessRestriction.NOCORS,
|
||||||
data: {
|
data: {
|
||||||
url: 'https://api.opencollective.com/graphql/v2',
|
url: 'https://api.opencollective.com/graphql/v2',
|
||||||
query: `{ "query": "query { collective(slug: \\"${match[1]}\\") { longDescription } }" }`
|
query: `{ "query": "query { account(slug: \\"${match[1]}\\") { longDescription } }" }`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
response: {
|
response: {
|
||||||
|
@ -57,7 +57,7 @@ export function processURI (uri) {
|
||||||
format: E.ClaimFormat.URI,
|
format: E.ClaimFormat.URI,
|
||||||
encoding: E.EntityEncodingFormat.PLAIN,
|
encoding: E.EntityEncodingFormat.PLAIN,
|
||||||
relation: E.ClaimRelation.CONTAINS,
|
relation: E.ClaimRelation.CONTAINS,
|
||||||
path: ['data', 'collective', 'longDescription']
|
path: ['data', 'account', 'longDescription']
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue