From 15350af51669adb83246f3fe613478e89287e7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9A=A9=EC=88=98?= Date: Mon, 7 Oct 2024 11:41:42 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=97=85?= =?UTF-8?q?=EB=A1=9C=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/worlabel/domain/image/service/ImageService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/com/worlabel/domain/image/service/ImageService.java b/backend/src/main/java/com/worlabel/domain/image/service/ImageService.java index 10a97a4..76bafd5 100644 --- a/backend/src/main/java/com/worlabel/domain/image/service/ImageService.java +++ b/backend/src/main/java/com/worlabel/domain/image/service/ImageService.java @@ -337,9 +337,9 @@ public class ImageService { // Presigned URL 생성 String presignedUrl = s3UploadService.generatePresignedUrl(key, extension); -// // DB에 이미지 메타데이터 저장 -// Image image = Image.of(fileName, s3UploadService.addBucketPrefix(key), extension, folder); -// imageRepository.save(image); + // DB에 이미지 메타데이터 저장 + Image image = Image.of(fileName, s3UploadService.addBucketPrefix(key), extension, folder); + imageRepository.save(image); // Presigned URL과 함께 응답 데이터 생성 ImagePresignedUrlResponse response = ImagePresignedUrlResponse.of(meta.getId(), presignedUrl);