Closed mbonig closed 6 years ago
Yeah, an empty array is definitely not what we were looking for here.
Reproducing this was simple with the code you posted. Looks like function naming was bad, two calls both called getPlayersPromise
but with different parameters. It was trying to use the get players by team version with null for the team. Quite possible this same bug is happening elsewhere. I'll correct our generation to take this into account and hopefully have a new version out soon.
Thanks @mbonig for passing this along.
This issue is now resolved as of e924ef423aaa0daaebc066e9ae6076fc829cb7fa. We adjusted the naming conventions to be unique (and maybe a bit wordy).
@mbonig important to note that many function names will have changed (getPlayersPromise
became getPlayerDetailsByActivePromise
)
Great, I'll give it a try, thanks!
That call works better now. Thanks.
This code, ran in
node -v
:v8.9.0
results as printed:
When I run it in the developers portal, I get results (after a LONG hang, but they get there)
Would have expected to get a non-empty array.