From e0fffbb14d3129e3001ec15599a9fceaa07f3fec Mon Sep 17 00:00:00 2001 From: dylanzuber-scale3 <116033320+dylanzuber-scale3@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:42:58 -0400 Subject: [PATCH] hot fix for live prompt bug (#278) --- app/api/prompt/route.ts | 2 ++ 1 file changed, 2 insertions(+) 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, }, });