fix: fix build error by Specifying the type
This commit is contained in:
parent
0c68949fdd
commit
5893cd6491
@ -5,6 +5,7 @@ import { getIronSession } from 'iron-session'
|
|||||||
import { sessionOptions } from '@/libs/session'
|
import { sessionOptions } from '@/libs/session'
|
||||||
import { cookies } from 'next/headers'
|
import { cookies } from 'next/headers'
|
||||||
import type { SessionData } from '@/types/Auth'
|
import type { SessionData } from '@/types/Auth'
|
||||||
|
import { Prisma } from '@prisma/client'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 조사 매물 조회 에러 메시지
|
* @description 조사 매물 조회 에러 메시지
|
||||||
@ -278,7 +279,7 @@ export async function DELETE(request: NextRequest, { params }: { params: Promise
|
|||||||
try {
|
try {
|
||||||
const { id } = await params
|
const { id } = await params
|
||||||
|
|
||||||
await prisma.$transaction(async (tx) => {
|
await prisma.$transaction(async (tx: Prisma.TransactionClient) => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const detailData = await tx.SD_SURVEY_SALES_BASIC_INFO.findUnique({
|
const detailData = await tx.SD_SURVEY_SALES_BASIC_INFO.findUnique({
|
||||||
where: { ID: Number(id) },
|
where: { ID: Number(id) },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user