From 89e274a727e3ba2a71e28441b48d71f19553835b Mon Sep 17 00:00:00 2001 From: YeongWoooo Date: Tue, 3 Oct 2023 00:46:06 +0900 Subject: [PATCH] =?UTF-8?q?[#75]=20=EB=AA=A8=EC=9E=84=20=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=EA=B8=80=20=EC=82=AD=EC=A0=9C=EC=8B=9C=20=ED=95=B4=EB=8B=B9=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=EB=A7=8C=20=EC=82=AD=EC=A0=9C=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/meeting/v0/meeting-v0.controller.ts | 1 - server/src/meeting/v1/meeting-v1.controller.ts | 1 - server/src/post/v1/post-v1.service.ts | 11 +---------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/server/src/meeting/v0/meeting-v0.controller.ts b/server/src/meeting/v0/meeting-v0.controller.ts index d3a4bbf4..f38417c7 100644 --- a/server/src/meeting/v0/meeting-v0.controller.ts +++ b/server/src/meeting/v0/meeting-v0.controller.ts @@ -38,7 +38,6 @@ import { MeetingV0GetApplyListByMeetingResponseDto } from './dto/get-apply-list- import { MeetingV0GetAllMeetingsResponseDto } from './dto/get-all-meetings/meeting-v0-get-all-meetings-response.dto'; import { GetUser } from 'src/common/decorator/get-user.decorator'; import { ApiOkResponseCommon } from 'src/common/decorator/api-ok-response-common.decorator'; -import { Apply } from 'src/entity/apply/apply.entity'; @ApiTags('모임') @Controller('meeting') diff --git a/server/src/meeting/v1/meeting-v1.controller.ts b/server/src/meeting/v1/meeting-v1.controller.ts index f5303190..3548e77c 100644 --- a/server/src/meeting/v1/meeting-v1.controller.ts +++ b/server/src/meeting/v1/meeting-v1.controller.ts @@ -2,7 +2,6 @@ import { Body, Controller, Get, - HttpCode, HttpStatus, Param, ParseIntPipe, diff --git a/server/src/post/v1/post-v1.service.ts b/server/src/post/v1/post-v1.service.ts index 16c88ed1..73b121e0 100644 --- a/server/src/post/v1/post-v1.service.ts +++ b/server/src/post/v1/post-v1.service.ts @@ -396,15 +396,6 @@ export class PostV1Service { throw new ForbiddenException('권한이 없습니다.'); } - const transaction = await this.postRepository.getTransaction(); - await transaction.transaction(async (manager) => { - await manager.delete('Like', { postId }); - await manager.decrement( - 'Meeting', - { id: post.meetingId }, - 'postCount', - 1, - ); - }); + await this.postRepository.delete({ id: postId }); } }