diff --git a/src/modules/class-user/class-user.repository.ts b/src/modules/class-user/class-user.repository.ts index 98f0ac4..363353c 100644 --- a/src/modules/class-user/class-user.repository.ts +++ b/src/modules/class-user/class-user.repository.ts @@ -1,6 +1,6 @@ import { Injectable } from '@nestjs/common'; import { PrismaService } from '@modules/prisma/prisma.service'; -import { ClassUser } from '@prisma/client'; +import { ClassUser, Role } from '@prisma/client'; @Injectable() export class ClassUserRepository { @@ -41,12 +41,18 @@ export class ClassUserRepository { return this.prisma.classUser.findMany({ where: { c_id, + role: Role.USER, }, skip: page && (page - 1) * limit, take: limit && limit, select: { u_id: true, nickname: true, + user: { + select: { + image: true, + }, + }, }, orderBy: { u_id: 'asc', diff --git a/src/modules/quiz-feedback/quiz-feedback.service.ts b/src/modules/quiz-feedback/quiz-feedback.service.ts index e300e6c..ac1bbd7 100644 --- a/src/modules/quiz-feedback/quiz-feedback.service.ts +++ b/src/modules/quiz-feedback/quiz-feedback.service.ts @@ -34,6 +34,8 @@ export class QuizFeedbackService { if (!feedback) { throw new NotFoundException('Feedback not found'); } + + return feedback; } /**