We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f723601 commit be0ecadCopy full SHA for be0ecad
components/server/ee/src/user/eligibility-service.ts
@@ -94,8 +94,9 @@ export class EligibilityService {
94
logCtx,
95
`fetching the GitHub Education API failed with status ${rawResponse.status}: ${rawResponse.statusText}`,
96
);
97
+ return { student: false, faculty: false };
98
}
- const result: GitHubEducationPack = JSON.parse(await rawResponse.text());
99
+ const result: GitHubEducationPack = await rawResponse.json();
100
if (result.student && result.faculty) {
101
// That violates the API contract: `student` and `faculty` need to be mutually exclusive
102
log.warn(
0 commit comments