(improvement)(Headless) Fix the issue where 'correct' is only executed once. (#960)

This commit is contained in:
lexluo09
2024-04-28 19:58:36 +08:00
committed by GitHub
parent a6724f886b
commit b313494b12

View File

@@ -77,7 +77,7 @@ public class WorkflowServiceImpl implements WorkflowService {
}
for (SemanticCorrector corrector : semanticCorrectors) {
corrector.correct(queryCtx, semanticQuery.getParseInfo());
if (!WorkflowState.PARSING.equals(queryCtx.getWorkflowState())) {
if (!WorkflowState.CORRECTING.equals(queryCtx.getWorkflowState())) {
break;
}
}