Api+App: komentarze usera - statusy przeczytania i typ USER_COMMENT (feed, profil, panel trenera)

This commit is contained in:
tisachi
2026-11-09 03:39:29 +01:00
parent 08e0c4080e
commit 7a9f438cc7
25 changed files with 801 additions and 88 deletions

View File

@@ -467,7 +467,7 @@ export async function getTraineeDetail(prisma: PrismaClient, trainerId: string,
/** Trainee session history with plan vs. actual (restricted: training data only). */
export async function getTraineeHistory(prisma: PrismaClient, trainerId: string, userId: string) {
await assertActiveTrainee(prisma, trainerId, userId);
return getHistory(prisma, userId);
return getHistory(prisma, userId, undefined, trainerId);
}
export type { MuscleReport };