fix query url

This commit is contained in:
Ayres Vitor
2025-07-31 16:21:58 -03:00
parent 77458b16d2
commit d5aeceb542

View File

@@ -19,10 +19,7 @@ async function fetchData() {
}
}`;
const data = await q(query, 'https://api.opencollective.com/graphql/v2', 'Open Collective', {
Authorization: `bearer ${GITHUB_TOKEN}`,
const data = await q(alternativeQuery, 'https://api.opencollective.com/graphql/v2', 'GitHub', {
const data = await q(query, 'https://api.github.com/graphql', 'GitHub', {
Authorization: `bearer ${token}`,
});