इसे बदलें:
var queries = queriesRaw.map(q => {
return client.query(q[0], q[1])
})
for await (const oneResult of queries) {
allResults.push(oneResult)
}
प्रति:
for(const q of rawQueries) {
let result = await client.query(q[0], q[1]);
allResults.push(result);
});