Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"label": "Build all - watch",
"command": "turbo watch build",
"command": "pnpm watch",
"type": "shell",
"group": {
"kind": "build"
Expand Down Expand Up @@ -50,6 +50,16 @@
"color": "terminal.ansiMagenta",
"id": "server-process"
}
},
{
"label": "Submit PR",
"command": "pnpm pr",
"type": "shell",
"icon": {
"color": "terminal.ansiWhite",
"id": "server-process"
},
"problemMatcher": []
}
]
}
8 changes: 7 additions & 1 deletion packages/runtime/src/client/client-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,13 @@ function createModelCrudHandler<Schema extends SchemaDef, Model extends GetModel
if (typeof opHooks === 'function') {
const _proceed = proceed;
proceed = () =>
opHooks({ client, model, operation, args, query: _proceed });
opHooks({
client,
model,
operation,
args,
query: _proceed,
}) as Promise<unknown>;
}
}
}
Expand Down
Loading
Loading