import { db } from "@cocalc/database" ; import { callback2 } from "@cocalc/util/async-utils" ; type Query = any ; type Option = any ; interface Options { client_id ? : string ; account_id ? : string ; project_id ? : string ; query : Query ; options ? : Option [ ] ; } export default async function userQuery ( { client_id , account_id , project_id , query , options , } ) { return await callback2 ( db ( ) . user_query , { client_id , account_id , project_id , query , options , } ) ; }