Closed DriscollRichie closed 6 years ago
It says db.get_bins
is not a function; is there anything there or is it just undefined
?
Also, you'll need to await
that invocation but that's a separate issue.
@DriscollRichie The error tells you, that what you defined as get_bins
in file binsCtrl.js
, is not a function. Looks like an error on your side.
@dmfay It showed it as an available function in the console when I console.logged db.listFunctions()
, but it turns out that the await
was the problem. Such a simple mistake. Don't code when you've been drinking! Sorry for the foolishness. Thank you!
Don't code when you've been drinking
Seriously? That is the only way to do it! :smile:
Obviously the solution is to drink more and get on that Ballmer peak :wink:
Summary
db.listFunctions() provides an array of my function, but massive says function does not exist.
Example
Expected behavior
The function to exist.
Actual behavior
The function does not exist.