Skip to content

Commit

Permalink
important TODO for later
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Aug 4, 2024
1 parent 967dbec commit f5ca36c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/trpc/routes/mesocycles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export const mesocycles = t.router({
updateExerciseSplit: t.procedure
.input(zodUpdateExerciseSplitInput)
.mutation(async ({ input, ctx }) => {
// TODO: modify splitDayIndex of all workoutOfMesocycle join table records if split days re-arranged
// * is it better to link by splitDayName instead? makes stuff a lot more simpler tbh
const mesocycle = await prisma.mesocycle.findUniqueOrThrow({
where: { id: input.mesocycleId, userId: ctx.userId },
select: { id: true }
Expand Down

0 comments on commit f5ca36c

Please sign in to comment.