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