Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports.submitOp = (webstrateId, op, next) => {
// https://github.com/share/sharedb/blob/master/lib/backend.js
// Maybe this method is unnecessary and could be replaced by just submit. But that will
// trigger the submit event, this won't, so I don't know.
const request = new sharedb.SubmitRequest(share, agent, COLLECTION_NAME, webstrateId, op);
request.submit(next);
};