I'm having an issue where I am successfully retrieving a value from a query, everything seems to be working fine. However, when I try to assign it to a const, the object does not get passed.
let selectid = await pool.query(
`SELECT ID_user FROM user WHERE User_email='${email_consulted}'`
);
const id = selectid.ID_user
Any ideas on what could be causing this problem?