FIX rebase--2024-02-20--15-07
authorKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 14:06:42 +0000 (15:06 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 14:06:42 +0000 (15:06 +0100)
src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageStrategy.java

index c3ec099..931b47c 100644 (file)
@@ -23,7 +23,7 @@ public class MongoDbStorageStrategy implements StorageStrategy
   {
     return chatRoomInfoFlux
         .map(ChatRoomTo::from)
-        .map(chatRoomTo -> chatRoomRepository.save(chatRoomTo))
+        .flatMap(chatRoomTo -> chatRoomRepository.save(chatRoomTo))
         .map(ChatRoomTo::toChatRoomInfo);
   }