import getPool from "@cocalc/database/pool" ; export default async function getHelpEmail ( ) { const pool = getPool ( "long" ) ; const { rows } = await pool . query ( "SELECT value FROM server_settings WHERE name='help_email'" ) ; if ( rows . length == 0 || ! rows [ 0 ] . value ) { throw Error ( "no help email address set" ) ; } return rows [ 0 ] . value ; }