Skip to content

Commit 8070a1e

Browse files
committed
fix deprecation warning
1 parent 0c698ee commit 8070a1e

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,16 +2099,16 @@ export abstract class BaseOperationHandler<Schema extends SchemaDef> {
20992099
}
21002100

21012101
protected executeQuery(kysely: ToKysely<Schema>, query: Compilable, _operation: string) {
2102-
return kysely.executeQuery(query.compile(), createQueryId());
2102+
return kysely.executeQuery(query.compile());
21032103
}
21042104

21052105
protected async executeQueryTakeFirst(kysely: ToKysely<Schema>, query: Compilable, _operation: string) {
2106-
const result = await kysely.executeQuery(query.compile(), createQueryId());
2106+
const result = await kysely.executeQuery(query.compile());
21072107
return result.rows[0];
21082108
}
21092109

21102110
protected async executeQueryTakeFirstOrThrow(kysely: ToKysely<Schema>, query: Compilable, _operation: string) {
2111-
const result = await kysely.executeQuery(query.compile(), createQueryId());
2111+
const result = await kysely.executeQuery(query.compile());
21122112
if (result.rows.length === 0) {
21132113
throw new ORMError(ORMErrorReason.NOT_FOUND, 'No rows found');
21142114
}

0 commit comments

Comments
 (0)