From 23fe3e4b76e8a2fc073184a48f2257eeb61e69eb Mon Sep 17 00:00:00 2001 From: kilted-andres Date: Tue, 17 Dec 2024 21:42:10 +0100 Subject: [PATCH] feat: treat 'none' and 'NONE' as equals --- src/backend/revoker/indexer/queryFromIndexer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/revoker/indexer/queryFromIndexer.ts b/src/backend/revoker/indexer/queryFromIndexer.ts index 34414158..11e9089a 100644 --- a/src/backend/revoker/indexer/queryFromIndexer.ts +++ b/src/backend/revoker/indexer/queryFromIndexer.ts @@ -98,7 +98,7 @@ export async function queryFromIndexer(query: string) { export async function* matchesGenerator( buildQuery: (offset: number) => string, ): AsyncGenerator { - if (indexer.graphqlEndpoint === 'NONE') { + if (String(indexer.graphqlEndpoint).toUpperCase() === 'NONE') { return; } const query = buildQuery(0);