Need help with JS async/await

Job ID: 36175214

Budget: €8 – €30 EUR

I'm stuck on a function that has to perform some psql queries in sequence. I'm trying to use async/await, but cannot understand the correct sequence.

IMPORTANT: my budget is 5$ (it's a 5 minutes task) and will pay only with BTC on lightning network.
Related categories: JavaScript AJAX MySQL