Исправление бага
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-04-02 16:02:19 +03:00
parent 116950b463
commit 5379471aea
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -159,7 +159,7 @@ public class GeneralAutoResponder<M extends Message> {
final Class<? extends Message> messageClass = message.getClass();
final ActionUnit<MainUnit, M> actionUnit = getActionUnit(actionUnits, messageClass);
if (checkNotNull(actionUnit)) {
return actionUnit.action(unitRequest)
return Uni.createFrom().deferred(() -> actionUnit.action(unitRequest))
.flatMap(
newUnitRequest -> {
final Optional<MainUnit<M>> optDefaultUnit = storyLineService.getDefaultUnit();