mysql query is skipped
Hi,
I have a function that should retrieve data from the database and then process and return it. The function is however skipping the query and returning undefined.
This is the query:
4 Replies
Is there anyone who understands JS? Thanks
You should probably study async/await: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Promises
In this case you'd probably want to do
I tried this before and it didn't work. Now that I tried it second time, it works.. I must've made a typo or something.. Thank you very much lino!
👍