Skip to content

Commit

Permalink
Refactor(#527): 인기 클래스 길이 5 -> 8 확대
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zzi committed Jun 14, 2024
1 parent 630259d commit 1836701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lecture/services/popular-lecture.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export class PopularLectureService {

const sortedPopularScores = this.sortPopularScores(popularScores);

const topFivePopularScores = sortedPopularScores.slice(0, 5);
const toEightPopularScores = sortedPopularScores.slice(0, 8);

const popularLectures = [];

for (const popularLecture of topFivePopularScores) {
for (const popularLecture of toEightPopularScores) {
const lecture =
await this.popularLectureRepository.trxReadLectureWithUserId(
trasaction,
Expand Down

0 comments on commit 1836701

Please sign in to comment.