From b8b751eaf1a84aff55233dcad17771bbe88ff882 Mon Sep 17 00:00:00 2001 From: koomin1227 Date: Sat, 9 Dec 2023 23:11:56 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20Feat=20:=20=EB=B0=B0=EC=97=B4=20?= =?UTF-8?q?=ED=98=95=EC=8B=9D=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/post/post.service.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BE/src/post/post.service.ts b/BE/src/post/post.service.ts index 03f591c..bf2ed12 100644 --- a/BE/src/post/post.service.ts +++ b/BE/src/post/post.service.ts @@ -223,7 +223,6 @@ export class PostService { post.end_date = createPostDto.end_date; post.user_hash = userHash; post.thumbnail = imageLocations.length > 0 ? imageLocations[0] : null; - // 이미지 추가 const res = await this.postRepository.save(post); if (res.is_request === false) { await this.createImages(imageLocations, res.id); @@ -258,8 +257,6 @@ export class PostService { }, }); const titles: string[] = posts.map((post) => post.title); - return { - titles: titles.slice(0, 5), - }; + return titles.slice(0, 5); } }