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

This commit is contained in:
Struchkov Mark 2023-05-24 06:00:15 +03:00
parent caf88a210e
commit b44841fe9b
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

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));