Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Oct 17, 2024
2 parents db78e9d + bbc2529 commit ec2a865
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/inferred_mode/inferred_mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ export default class InferredQueryHandler {
[resultID: string]: number;
} = {};
const auxGraphSuffixes: { [inferredEdgeID: string]: number } = {};
if (global.queryInformation != null) {
global.queryInformation.totalRecords = {};
}

const completedHandlers = await Promise.all(
subQueries.map(async ({ template, queryGraph, qualifiers }, i) => {
Expand All @@ -640,10 +643,7 @@ export default class InferredQueryHandler {
this.predicatePath,
this.includeReasoner,
);
if (global.queryInformation != null) {
global.queryInformation.totalRecords = {};
global.queryInformation.totalRecords[i] = 0; // Ensure 0 starting for each template
}
global.queryInformation.totalRecords[i] = 0; // Ensure 0 starting for each template
handler.setQueryGraph(queryGraph);
const failedHandlerLogs: { [index: number]: StampedLog[] } = {};
try {
Expand Down

0 comments on commit ec2a865

Please sign in to comment.