Closed DarkNeku closed 5 years ago
I'd suggest looking at this blog series for ideas on how to write this sort of application.
You've already posted this code. I pointed out several issues, including:
None of which has been addressed. Why is that?
Also, your description of the problem is hard to understand:
the problem is that after asking I knew that I am wrong when executing the function that validates because it is not synchronic, the issue is that I do not know where I should put the code of the async function
What do you mean by "the function that validates"? What is the "the code of the async function" you're referring to?
What generally helps us to help you is a reproducible test case. This means you should provide us with everything we need to reproduce your problem so that we can help. In your case, this would mean that you should give us a script that creates the user table and inserts some test data. Then you should provide all the Node.js code. You're not showing us all the code because we can't see where the connection
comes from.
Did you read the blog series that Anthony and I suggested?
Closing - no activity.
Hi, I have been with this code for a few days and the truth is already making me crazy, the problem is that after asking I knew that I am wrong when executing the function that validates because it is not synchronic, the issue is that I do not know where I should put the code of the async function ... the code is