Skip to content

Commit

Permalink
Merge pull request #525 from connection-2023/feature/#522
Browse files Browse the repository at this point in the history
Feature/#522
  • Loading branch information
j-zzi authored Jun 8, 2024
2 parents a2addab + b3b524d commit a620e21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lecture/services/popular-lecture.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class PopularLectureService {

const sortedPopularScores = this.sortPopularScores(popularScores);

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

const popularLectures = [];

Expand Down
4 changes: 2 additions & 2 deletions src/lecturer/services/popular-lecturer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export class PopularLecturerService {
}
});

const topFivePopularScores = popularScores.slice(0, 6);
const topEightPopularScores = popularScores.slice(0, 8);
const popularLecturers = [];

for (const popularLecturer of topFivePopularScores) {
for (const popularLecturer of topEightPopularScores) {
const lecturer =
await this.popularLecturerRepository.trxReadLecturerWithLecturerId(
trasaction,
Expand Down

0 comments on commit a620e21

Please sign in to comment.