diff --git a/src/common/entites/EFeed.ts b/src/common/entites/EFeed.ts index 3e1a9d33..7a730a13 100644 --- a/src/common/entites/EFeed.ts +++ b/src/common/entites/EFeed.ts @@ -19,7 +19,7 @@ export namespace EFeed { export const RankedReviewDetails = Prisma.validator()({}); - export const EFamousMajorReviewDetails = + export const FamousMajorReviewDetails = Prisma.validator()({ include: { subject_department: true, @@ -63,7 +63,7 @@ export namespace EFeed { export type FamousMajorReviewDetails = Prisma.main_famousmajorreviewdailyfeedGetPayload< - typeof EFamousMajorReviewDetails + typeof FamousMajorReviewDetails >; export type ReviewWriteDetails = diff --git a/src/prisma/repositories/feeds.repository.ts b/src/prisma/repositories/feeds.repository.ts index 836da841..51719796 100644 --- a/src/prisma/repositories/feeds.repository.ts +++ b/src/prisma/repositories/feeds.repository.ts @@ -82,7 +82,7 @@ export class FeedsRepository { departmentNum: number = 1, ) { let feed = await this.prisma.main_famousmajorreviewdailyfeed.findFirst({ - include: EFeed.EFamousMajorReviewDetails.include, + include: EFeed.FamousMajorReviewDetails.include, where: { date, subject_department, @@ -100,7 +100,7 @@ export class FeedsRepository { LIMIT 3`) satisfies review_majorbestreview; feed = await this.prisma.main_famousmajorreviewdailyfeed.create({ - include: EFeed.EFamousMajorReviewDetails.include, + include: EFeed.FamousMajorReviewDetails.include, data: { date, priority: Math.random(),