From 107817d58d07de9e4f7f6eb6df2f78ac50ef31e5 Mon Sep 17 00:00:00 2001 From: Yechan Lee Date: Tue, 5 Mar 2024 15:46:57 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20import=20=EC=88=9C=EC=84=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/competition.controller.ts | 4 ++-- .../src/competition/gateways/competition.gateway.ts | 13 ++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/be/algo-with-me-api/src/competition/controllers/competition.controller.ts b/be/algo-with-me-api/src/competition/controllers/competition.controller.ts index a0fb90e..30849da 100644 --- a/be/algo-with-me-api/src/competition/controllers/competition.controller.ts +++ b/be/algo-with-me-api/src/competition/controllers/competition.controller.ts @@ -15,14 +15,14 @@ import { AuthGuard } from '@nestjs/passport'; import { ApiBearerAuth, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { WINSTON_MODULE_PROVIDER } from 'nest-winston'; +import { CompetitionProblemResponseDto } from '../../problem/dto/competition.problem.response.dto'; +import { ProblemSimpleResponseDto } from '../../problem/dto/problem.simple.response.dto'; import { AuthUser } from '../../user/decorators/user.decorators'; import { User } from '../../user/entities/user.entity'; import { CompetitionDto } from '../dto/competition.dto'; import { IsJoinableDto } from '../dto/competition.is.joinable.dto'; -import { CompetitionProblemResponseDto } from '../../problem/dto/competition.problem.response.dto'; import { CompetitionResponseDto } from '../dto/competition.response.dto'; import { CompetitionSimpleResponseDto } from '../dto/competition.simple-response.dto'; -import { ProblemSimpleResponseDto } from '../../problem/dto/problem.simple.response.dto'; import { ScoreResultDto } from '../dto/score-result.dto'; import { CompetitionService } from '../services/competition.service'; diff --git a/be/algo-with-me-api/src/competition/gateways/competition.gateway.ts b/be/algo-with-me-api/src/competition/gateways/competition.gateway.ts index cef4e82..054096b 100644 --- a/be/algo-with-me-api/src/competition/gateways/competition.gateway.ts +++ b/be/algo-with-me-api/src/competition/gateways/competition.gateway.ts @@ -11,15 +11,14 @@ import { import { WINSTON_MODULE_PROVIDER } from 'nest-winston'; import { Server, Socket } from 'socket.io'; +import { AuthTokenPayloadDto } from '../../auth/dto/auth.token.payload.dto'; +import { AuthService } from '../../auth/services/auth.service'; +import { DashboardService } from '../../dashboard/dashboard.service'; +import { ProblemService } from '../../problem/services/problem.service'; +import { User } from '../../user/entities/user.entity'; +import { UserService } from '../../user/services/user.service'; import { CreateSubmissionDto } from '../dto/create-submission.dto'; import { CompetitionService } from '../services/competition.service'; -import { ProblemService } from '../../problem/services/problem.service'; - -import { AuthTokenPayloadDto } from '@src/auth/dto/auth.token.payload.dto'; -import { AuthService } from '@src/auth/services/auth.service'; -import { DashboardService } from '@src/dashboard/dashboard.service'; -import { User } from '@src/user/entities/user.entity'; -import { UserService } from '@src/user/services/user.service'; @WebSocketGateway({ namespace: 'competitions' }) export class CompetitionGateWay implements OnGatewayConnection, OnGatewayInit {