import getPool from "@cocalc/database/pool" ; interface Options { account_id : string ; name : string ; } export default async function unlinkStrategy ( { account_id , name , } ) { const pool = getPool ( ) ; await pool . query ( "UPDATE accounts SET passports = passports - $2 WHERE account_id=$1" , [ account_id , name ] ) ; }