Skip to content

Commit ff366fc

Browse files
committed
update test
1 parent 979a6fd commit ff366fc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/runtime/test/policy/client-extensions.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ describe('client extensions tests for policies', () => {
2323

2424
const ext = definePlugin({
2525
id: 'prisma-extension-queryOverride',
26-
onQuery: async ({ args, query }: any) => {
26+
onQuery: async ({ args, proceed }: any) => {
2727
args = args ?? {};
2828
args.where = { ...args.where, y: { lt: 300 } };
29-
return query(args);
29+
return proceed(args);
3030
},
3131
});
3232

@@ -54,10 +54,10 @@ describe('client extensions tests for policies', () => {
5454

5555
const ext = definePlugin({
5656
id: 'prisma-extension-queryOverride',
57-
onQuery: async ({ args, query }: any) => {
57+
onQuery: async ({ args, proceed }: any) => {
5858
args = args ?? {};
5959
args.where = { ...args.where, y: { lt: 300 } };
60-
return query(args);
60+
return proceed(args);
6161
},
6262
});
6363

@@ -85,10 +85,10 @@ describe('client extensions tests for policies', () => {
8585

8686
const ext = definePlugin({
8787
id: 'prisma-extension-queryOverride',
88-
onQuery: async ({ args, query }: any) => {
88+
onQuery: async ({ args, proceed }: any) => {
8989
args = args ?? {};
9090
args.where = { ...args.where, y: { lt: 300 } };
91-
return query(args);
91+
return proceed(args);
9292
},
9393
});
9494

@@ -116,10 +116,10 @@ describe('client extensions tests for policies', () => {
116116

117117
const ext = definePlugin({
118118
id: 'prisma-extension-queryOverride',
119-
onQuery: async ({ args, query }: any) => {
119+
onQuery: async ({ args, proceed }: any) => {
120120
args = args ?? {};
121121
args.where = { ...args.where, y: { lt: 300 } };
122-
return query(args);
122+
return proceed(args);
123123
},
124124
});
125125

@@ -145,8 +145,8 @@ describe('client extensions tests for policies', () => {
145145

146146
const ext = definePlugin({
147147
id: 'prisma-extension-resultMutation',
148-
onQuery: async ({ args, query }: any) => {
149-
const r: any = await query(args);
148+
onQuery: async ({ args, proceed }: any) => {
149+
const r: any = await proceed(args);
150150
for (let i = 0; i < r.length; i++) {
151151
r[i].value = r[i].value + 1;
152152
}

0 commit comments

Comments
 (0)