From fc2290e29ccb84a9691145810d1a80139feafc23 Mon Sep 17 00:00:00 2001 From: ChuYong Date: Thu, 12 Dec 2024 23:31:32 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=95=A8=EB=B2=94=20=EC=88=AB=EC=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/kr/mafoo/photo/service/AlbumService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/photo-service/src/main/java/kr/mafoo/photo/service/AlbumService.java b/photo-service/src/main/java/kr/mafoo/photo/service/AlbumService.java index 42cce97..ef449af 100644 --- a/photo-service/src/main/java/kr/mafoo/photo/service/AlbumService.java +++ b/photo-service/src/main/java/kr/mafoo/photo/service/AlbumService.java @@ -116,8 +116,8 @@ public Mono addSumoneAlbum(String albumName, String albumType, Stri ) ) ) - .then(Mono.just(album))) - .flatMap(album -> albumCommand.increaseAlbumPhotoCount(album, displayIndex.get())); + .then(albumQuery.findById(album.getAlbumId())) + .flatMap(newAlbum -> albumCommand.increaseAlbumPhotoCount(newAlbum, displayIndex.get()))); } @Transactional