mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
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,
|
||||
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']
|
||||
}]
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue