Api+App: komentarze usera - statusy przeczytania i typ USER_COMMENT (feed, profil, panel trenera)
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user