Skip to content

Commit e3a3cd0

Browse files
committed
fix: resolve TypeScript error in graphql-dataloader
- Fix 'Cannot find name ids' error on line 358 - Change ids.length to keys.length in batchLoadMultiAllocations function - Update error type from 'deployments' to 'multi-allocations' for clarity Resolves CI TypeScript compilation failure.
1 parent 9dee7a7 commit e3a3cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/indexer-common/src/performance/graphql-dataloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export class GraphQLDataLoader {
355355
const result = await this.networkSubgraph.checkedQuery(query, { queries })
356356

357357
if (result.error) {
358-
throw new BatchLoadError('deployments', ids.length, result.error)
358+
throw new BatchLoadError('multi-allocations', keys.length, result.error)
359359
}
360360

361361
// Group allocations by indexer and status

0 commit comments

Comments
 (0)