From b44841fe9bed0cb06eb3964243879a1b87becd64 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 24 May 2023 06:00:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0=D0=B3=D0=B0=20=D0=B2=20?= =?UTF-8?q?AnswerSaveAction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../godfather/quarkus/core/action/AnswerSaveAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java index efcb154..191dffc 100644 --- a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java +++ b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java @@ -29,7 +29,7 @@ public class AnswerSaveAction implements ActionUnit, M return Uni.createFrom().voidItem() .onItem().transformToUni( v -> checkSave.check(message) - .onItem().ifNotNull().transformToUni( + .flatMap( unit -> { if (checkNotNull(unit)) { return Uni.createFrom().item(UnitRequest.of(unit, message));