Skip to content

Commit

Permalink
refactor: remove redundant prefix E
Browse files Browse the repository at this point in the history
  • Loading branch information
ddungiii committed Feb 13, 2024
1 parent 398404d commit a8b2a06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/common/entites/EFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export namespace EFeed {
export const RankedReviewDetails =
Prisma.validator<Prisma.main_rankedreviewdailyfeedArgs>()({});

export const EFamousMajorReviewDetails =
export const FamousMajorReviewDetails =
Prisma.validator<Prisma.main_famousmajorreviewdailyfeedArgs>()({
include: {
subject_department: true,
Expand Down Expand Up @@ -63,7 +63,7 @@ export namespace EFeed {

export type FamousMajorReviewDetails =
Prisma.main_famousmajorreviewdailyfeedGetPayload<
typeof EFamousMajorReviewDetails
typeof FamousMajorReviewDetails
>;

export type ReviewWriteDetails =
Expand Down
4 changes: 2 additions & 2 deletions src/prisma/repositories/feeds.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(),
Expand Down

0 comments on commit a8b2a06

Please sign in to comment.