FROM accounts WHERE proceeded = false;')
.then(res => console.log(res.rows.length))
.catch(e => console.error(e.stack));
}
How to handle result?
What is client and what does client.query() return, looking at ur code it looks like it returns a promise, you don't need .then() when u use await.
Обсуждают сегодня