Skip to content

Commit 99921a8

Browse files
committed
chore: disable query context injection
1 parent ffbaace commit 99921a8

File tree

1 file changed

+4
-3
lines changed
  • packages/runtime/src/client/crud/operations

1 file changed

+4
-3
lines changed

packages/runtime/src/client/crud/operations/base.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ExpressionUtils, type GetModels, type ModelDef, type SchemaDef } from '
2323
import { clone } from '../../../utils/clone';
2424
import { enumerate } from '../../../utils/enumerate';
2525
import { extractFields, fieldsToSelectObject } from '../../../utils/object-utils';
26-
import { CONTEXT_COMMENT_PREFIX, NUMERIC_FIELD_TYPES } from '../../constants';
26+
import { NUMERIC_FIELD_TYPES } from '../../constants';
2727
import type { CRUD } from '../../contract';
2828
import type { FindArgs, SelectIncludeOmit, SortOrder, WhereInput } from '../../crud-types';
2929
import { InternalError, NotFoundError, QueryError } from '../../errors';
@@ -1303,8 +1303,9 @@ export abstract class BaseOperationHandler<Schema extends SchemaDef> {
13031303
return NUMERIC_FIELD_TYPES.includes(fieldDef.type) && !fieldDef.array;
13041304
}
13051305

1306-
private makeContextComment(context: { model: GetModels<Schema>; operation: CRUD }) {
1307-
return sql.raw(`${CONTEXT_COMMENT_PREFIX}${JSON.stringify(context)}`);
1306+
private makeContextComment(_context: { model: GetModels<Schema>; operation: CRUD }) {
1307+
return sql``;
1308+
// return sql.raw(`${CONTEXT_COMMENT_PREFIX}${JSON.stringify(context)}`);
13081309
}
13091310

13101311
protected async updateMany<

0 commit comments

Comments
 (0)