We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c88d5f8 commit 71f7095Copy full SHA for 71f7095
apps/rpc/src/middlewares.ts
@@ -30,7 +30,7 @@ type WithTransaction = {
30
export function withDatabaseTransaction<TContext extends Context, TInput>(
31
isolationLevel: Prisma.TransactionIsolationLevel = "ReadCommitted"
32
) {
33
- const handler: MiddlewareFunction<TContext, WithTransaction, TInput> = async ({ ctx, next }) => {
+ const handler: MiddlewareFunction<TContext, TContext & WithTransaction, TInput> = async ({ ctx, next }) => {
34
return await ctx.prisma.$transaction(
35
async (handle) => {
36
return await next({
0 commit comments