fix: fix build error by Specifying the type

This commit is contained in:
Dayoung 2025-06-12 14:31:38 +09:00
parent 0c68949fdd
commit 5893cd6491

View File

@ -5,6 +5,7 @@ import { getIronSession } from 'iron-session'
import { sessionOptions } from '@/libs/session'
import { cookies } from 'next/headers'
import type { SessionData } from '@/types/Auth'
import { Prisma } from '@prisma/client'
/**
* @description
@ -278,7 +279,7 @@ export async function DELETE(request: NextRequest, { params }: { params: Promise
try {
const { id } = await params
await prisma.$transaction(async (tx) => {
await prisma.$transaction(async (tx: Prisma.TransactionClient) => {
// @ts-ignore
const detailData = await tx.SD_SURVEY_SALES_BASIC_INFO.findUnique({
where: { ID: Number(id) },