Skip to content

Commit

Permalink
feat: treat 'none' and 'NONE' as equals
Browse files Browse the repository at this point in the history
  • Loading branch information
kilted-andres committed Dec 17, 2024
1 parent d5bd369 commit 23fe3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/revoker/indexer/queryFromIndexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export async function queryFromIndexer<ExpectedQueryResults>(query: string) {
export async function* matchesGenerator<ExpectedQueryResults>(
buildQuery: (offset: number) => string,
): AsyncGenerator<ExpectedQueryResults, void> {
if (indexer.graphqlEndpoint === 'NONE') {
if (String(indexer.graphqlEndpoint).toUpperCase() === 'NONE') {
return;
}
const query = buildQuery(0);
Expand Down

0 comments on commit 23fe3e4

Please sign in to comment.