diff --git a/app/api/prompt/route.ts b/app/api/prompt/route.ts index 8bd8ccd0..0d941b33 100644 --- a/app/api/prompt/route.ts +++ b/app/api/prompt/route.ts @@ -68,6 +68,7 @@ export async function POST(req: NextRequest) { const existingLivePrompt = await prisma.prompt.findFirst({ where: { live: true, + promptsetId, }, }); @@ -129,6 +130,7 @@ export async function PUT(req: NextRequest) { const existingLivePrompt = await prisma.prompt.findFirst({ where: { live: true, + promptsetId, }, });