Skip to content

Commit

Permalink
hot fix for live prompt bug (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanzuber-scale3 authored Sep 19, 2024
1 parent 0c9bbfb commit e0fffbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/prompt/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export async function POST(req: NextRequest) {
const existingLivePrompt = await prisma.prompt.findFirst({
where: {
live: true,
promptsetId,
},
});

Expand Down Expand Up @@ -129,6 +130,7 @@ export async function PUT(req: NextRequest) {
const existingLivePrompt = await prisma.prompt.findFirst({
where: {
live: true,
promptsetId,
},
});

Expand Down

0 comments on commit e0fffbb

Please sign in to comment.