From 99921a841fd2a17486cacf3df3ea537d96c1ec74 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Thu, 14 Aug 2025 21:46:02 +0800 Subject: [PATCH] chore: disable query context injection --- packages/runtime/src/client/crud/operations/base.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/runtime/src/client/crud/operations/base.ts b/packages/runtime/src/client/crud/operations/base.ts index 237b3157..24874d69 100644 --- a/packages/runtime/src/client/crud/operations/base.ts +++ b/packages/runtime/src/client/crud/operations/base.ts @@ -23,7 +23,7 @@ import { ExpressionUtils, type GetModels, type ModelDef, type SchemaDef } from ' import { clone } from '../../../utils/clone'; import { enumerate } from '../../../utils/enumerate'; import { extractFields, fieldsToSelectObject } from '../../../utils/object-utils'; -import { CONTEXT_COMMENT_PREFIX, NUMERIC_FIELD_TYPES } from '../../constants'; +import { NUMERIC_FIELD_TYPES } from '../../constants'; import type { CRUD } from '../../contract'; import type { FindArgs, SelectIncludeOmit, SortOrder, WhereInput } from '../../crud-types'; import { InternalError, NotFoundError, QueryError } from '../../errors'; @@ -1303,8 +1303,9 @@ export abstract class BaseOperationHandler { return NUMERIC_FIELD_TYPES.includes(fieldDef.type) && !fieldDef.array; } - private makeContextComment(context: { model: GetModels; operation: CRUD }) { - return sql.raw(`${CONTEXT_COMMENT_PREFIX}${JSON.stringify(context)}`); + private makeContextComment(_context: { model: GetModels; operation: CRUD }) { + return sql``; + // return sql.raw(`${CONTEXT_COMMENT_PREFIX}${JSON.stringify(context)}`); } protected async updateMany<