Skip to content

Commit

Permalink
[CIT-38] Bugfix on event delete (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-upadhyay authored Jul 21, 2023
1 parent 485e64d commit 2f4df73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions citrus/app/api/experiences/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ export async function DELETE(request: Request,
{ params }: { params: { id: string } }) {
const id = params.id;
try {
var deletedStatuses = await prisma.user_attending_status.deleteMany({
where: {
event_id: id
}
});

const deletedEvent = await prisma.experiences.delete({
where: {
id: id
Expand Down

1 comment on commit 2f4df73

@vercel
Copy link

@vercel vercel bot commented on 2f4df73 Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.