import getPool from "@cocalc/database/pool" ; export default async function getEmailAddress ( account_id ) { const pool = getPool ( "long" ) ; const { rows } = await pool . query ( "SELECT email_address FROM accounts WHERE account_id=$1" , [ account_id ] ) ; return rows [ 0 ] ?. email_address ; }