Skip to content

Commit

Permalink
exerciseSplits can't be deleted if mesocycles are linking to them
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Jun 19, 2024
1 parent f6ac1bf commit 86ec70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ dotenv.config();
const prisma = new PrismaClient();

export async function deleteUserData(userId: string) {
await prisma.exerciseSplit.deleteMany({ where: { userId } });
await prisma.mesocycle.deleteMany({ where: { userId } });
await prisma.exerciseSplit.deleteMany({ where: { userId } });
}

export * from '@playwright/test';
Expand Down

0 comments on commit 86ec70e

Please sign in to comment.