From 13082a16733943fbda108f2155968ed81a614b78 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 20 Feb 2024 15:06:42 +0100 Subject: [PATCH] FIX --- .../chat/backend/storage/mongodb/MongoDbStorageStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1