Skip to content

Commit 2826974

Browse files
committed
fix build
1 parent a16bb9d commit 2826974

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/runtime/src/enhancements/node/policy/policy-utils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
} from '../../../types';
3131
import { getVersion } from '../../../version';
3232
import type { InternalEnhancementOptions } from '../create-enhancement';
33-
import { Logger } from '../logger';
3433
import { QueryUtils } from '../query-utils';
3534
import type {
3635
DelegateConstraint,
@@ -47,7 +46,6 @@ import { formatObject, prismaClientKnownRequestError } from '../utils';
4746
* Access policy enforcement utilities
4847
*/
4948
export class PolicyUtil extends QueryUtils {
50-
private readonly logger: Logger;
5149
private readonly modelMeta: ModelMeta;
5250
private readonly policy: PolicyDef;
5351
private readonly zodSchemas?: ZodSchemas;
@@ -62,7 +60,6 @@ export class PolicyUtil extends QueryUtils {
6260
) {
6361
super(db, options);
6462

65-
this.logger = new Logger(db);
6663
this.user = context?.user;
6764

6865
({

packages/runtime/src/enhancements/node/query-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Logger } from './logger';
1616
import { prismaClientUnknownRequestError, prismaClientValidationError } from './utils';
1717

1818
export class QueryUtils {
19-
private readonly logger: Logger;
19+
protected readonly logger: Logger;
2020

2121
constructor(private readonly prisma: DbClientContract, protected readonly options: InternalEnhancementOptions) {
2222
this.logger = new Logger(prisma);

0 commit comments

Comments
 (0)