1import { callback2 } from "@cocalc/util/async-utils"; 2 3export default async function query(client, opts) { 4 if (opts.changes) { 5 // maybe they could be; however, there's no good use case (?). 6 throw Error("changefeeds are not supported for api queries"); 7 } 8 return await callback2(client.query.bind(client), opts); 9} 10 11