From: Kai Moritz Date: Tue, 20 Feb 2024 14:06:42 +0000 (+0100) Subject: FIX X-Git-Tag: rebase--2024-02-20--15-07 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=13082a16733943fbda108f2155968ed81a614b78;p=demos%2Fkafka%2Fchat FIX --- diff --git a/src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageStrategy.java b/src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageStrategy.java index c3ec0996..931b47c1 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageStrategy.java +++ b/src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageStrategy.java @@ -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); }