Returns related data asked to the target action called
Failure Information
I placed a breakpoint where the error was throw and when the breakpoint was hit, I read the variable state and I noticed that the value of this is undefined
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Declare a new action
Rather than access ctx variable, destruct it to directly access the call method
Call another existing action this way using the call method
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
call
method inside an action throws an error:at \node_modules\moleculer\src\context.js:260:12
NOTE This only happens when using the JS Object destructing feature
Expected Behavior
Returns related data asked to the target action called
Failure Information
I placed a breakpoint where the error was throw and when the breakpoint was hit, I read the variable state and I noticed that the value of
this
is undefinedSteps to Reproduce
Please provide detailed steps for reproducing the issue.
ctx
variable, destruct it to directly access thecall
methodcall
methodReproduce code snippet
Codesandbox demo
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs