-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
First, thank you for this highly useful package! 🎉
I have the following situation:
One ValidatedMethod (on the server) A is calling another ValidatedMethod B (again on the server only).
Now if I _execute() the outer method A and pass it a userId context, that userId gets lost in the inner method B, and userId is again undefined.
Reproduction
https://github.com/workflow/validated-method-repro
Outcome
I20170425-21:29:03.151(2)? Outer method userId: fXHHHMYTzzk3i4eKf
I20170425-21:29:03.152(2)? Inner method userId: null
Desired
I20170425-21:29:03.151(2)? Outer method userId: fXHHHMYTzzk3i4eKf
I20170425-21:29:03.152(2)? Inner method userId: fXHHHMYTzzk3i4eKf
The only workaround I've found so far is to _execute B instead of calling it, explicitly passing down the userId. Not very pretty, since this affects production code to make the tests work.
FrancisBou, brooksbecton and jirkadev
Metadata
Metadata
Assignees
Labels
No labels