Skip to content

Commit

Permalink
Refactor(#527): 인기 강사 길이 8 -> 10 확대
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zzi committed Jun 14, 2024
1 parent 99ee77f commit 630259d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/events/events.gateway.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Inject } from '@nestjs/common';
import { ChatsRepository } from './../chats/repositories/chats.repository';
import {
ConnectedSocket,
MessageBody,
Expand Down
1 change: 0 additions & 1 deletion src/lecture/controllers/popular-lecture.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { PopularLectureService } from './../services/popular-lecture.service';
import { Controller, Get, UseGuards } from '@nestjs/common';
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
import { GetAuthorizedUser } from '@src/common/decorator/get-user.decorator';
import { UserAccessTokenGuard } from '@src/common/guards/user-access-token.guard';
import { ValidateResult } from '@src/common/interface/common-interface';
import { ApiReadManyPopularLecturesWithUserId } from '../swagger-decorators/read-many-popular-lecture-with-user-id.decorator';
import { SetResponseKey } from '@src/common/decorator/set-response-meta-data.decorator';
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 topEightPopularScores = popularScores.slice(0, 8);
const topTenPopularScores = popularScores.slice(0, 10);
const popularLecturers = [];

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

0 comments on commit 630259d

Please sign in to comment.