Исправление бага в AnswerSaveAction

This commit is contained in:
2023-05-24 06:00:15 +03:00
parent caf88a210e
commit b44841fe9b

View File

@@ -29,7 +29,7 @@ public class AnswerSaveAction<D> implements ActionUnit<AnswerSave<Message, D>, 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));