Исправление бага в AnswerSaveAction
This commit is contained in:
parent
caf88a210e
commit
b44841fe9b
@ -29,7 +29,7 @@ public class AnswerSaveAction<D> implements ActionUnit<AnswerSave<Message, D>, M
|
|||||||
return Uni.createFrom().voidItem()
|
return Uni.createFrom().voidItem()
|
||||||
.onItem().transformToUni(
|
.onItem().transformToUni(
|
||||||
v -> checkSave.check(message)
|
v -> checkSave.check(message)
|
||||||
.onItem().ifNotNull().transformToUni(
|
.flatMap(
|
||||||
unit -> {
|
unit -> {
|
||||||
if (checkNotNull(unit)) {
|
if (checkNotNull(unit)) {
|
||||||
return Uni.createFrom().item(UnitRequest.of(unit, message));
|
return Uni.createFrom().item(UnitRequest.of(unit, message));
|
||||||
|
Loading…
Reference in New Issue
Block a user