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