From 311da47fd38cc7c2d10af799df91bbea5f5d48c4 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 9 Apr 2023 18:15:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=80=D0=B5=D0=BA=D1=83=D1=80=D1=81=D0=B8=D1=8E=20?= =?UTF-8?q?=D0=B2=20GeneralAutoResponder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../godfather/quarkus/core/GeneralAutoResponder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java index 5df59cd..8899aec 100644 --- a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java +++ b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java @@ -19,6 +19,7 @@ import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; +import java.util.function.Function; import java.util.stream.Collectors; import static dev.struchkov.haiti.utils.Checker.checkEmpty; @@ -143,7 +144,9 @@ public class GeneralAutoResponder { v -> getAction(UnitRequest.of(first.get(), unitRequest.getMessage())) ) .onItem().transformToUni( - newRequest -> activeUnitAfter(UnitRequest.of(first.get(), unitRequest.getMessage())) + (Function, Uni>>) newRequest -> { + return activeUnitAfter(UnitRequest.of(newRequest.getUnit(), newRequest.getMessage())); + } ); } }