refactor: comment out background grammar check in DocumentSchema

- Temporarily disabled the background grammar check functionality in DocumentSchema to prevent unintended execution during document processing.
- This change is part of ongoing improvements to enhance code clarity and maintainability.

These modifications aim to streamline the document management process while ensuring a more controlled execution of background tasks.
This commit is contained in:
2024-12-17 05:27:36 +07:00
parent 637e044a05
commit d8b5abe1ed

View File

@@ -769,11 +769,11 @@ export class DocumentSchema extends PothosSchema {
Math.random() <= SYNC_PROBABILITY Math.random() <= SYNC_PROBABILITY
) { ) {
// Fire and forget - don't await or block // Fire and forget - don't await or block
this.backgroundGrammarCheck( // this.backgroundGrammarCheck(
payload.documentId, // payload.documentId,
payload.pageIndex, // payload.pageIndex,
ctx // ctx
); // );
} }
// biome-ignore lint/suspicious/noExplicitAny: error is any // biome-ignore lint/suspicious/noExplicitAny: error is any
} catch (error: any) { } catch (error: any) {