Skip to content

Commit 71f7095

Browse files
committed
use fixed type
1 parent c88d5f8 commit 71f7095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/rpc/src/middlewares.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type WithTransaction = {
3030
export function withDatabaseTransaction<TContext extends Context, TInput>(
3131
isolationLevel: Prisma.TransactionIsolationLevel = "ReadCommitted"
3232
) {
33-
const handler: MiddlewareFunction<TContext, WithTransaction, TInput> = async ({ ctx, next }) => {
33+
const handler: MiddlewareFunction<TContext, TContext & WithTransaction, TInput> = async ({ ctx, next }) => {
3434
return await ctx.prisma.$transaction(
3535
async (handle) => {
3636
return await next({

0 commit comments

Comments
 (0)