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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user