const page = new Promise(async(resolve,reject) => {
await pool.query(`select * from users where id = '32'`, (error,results,fields) => {
const id = results.map(r => r.id)
resolve(id)
})
}).then(r => {
return app.get(`/${r}`, (req,res) => { console.log(r) })
})