From f5ca36cdafdf2829cf4123541816f1363adb83a6 Mon Sep 17 00:00:00 2001 From: Yash Kolekar Date: Sun, 4 Aug 2024 15:50:23 +0530 Subject: [PATCH] important TODO for later --- src/lib/trpc/routes/mesocycles.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/trpc/routes/mesocycles.ts b/src/lib/trpc/routes/mesocycles.ts index 527d2d9b..4b56eda8 100644 --- a/src/lib/trpc/routes/mesocycles.ts +++ b/src/lib/trpc/routes/mesocycles.ts @@ -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 }