You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ifError() is not working for methods of entities.
When we call an entity (or root entity) method with ifError(), the .value member is not being added in the fail check.
See example below:
Describe the bug
ifError() is not working for methods of entities.
When we call an entity (or root entity) method with ifError(), the
.value
member is not being added in the fail check.See example below:
To Reproduce
For the following Entity in bl:
when we call the rename method in a command handler, for example:
In typescript will be generated the following code in the command handler:
Expected behavior
The generated code should have the
.value
in fail function:Temporary Solution
Instead of
(OK(void), Errors())
we can declarevoid
as return type of the method:In this case in the command handler in bl we will write:
and the typescript code generated will be:
without the fail check.
The text was updated successfully, but these errors were encountered: