{"action":"created","issue":{"url":"https://api.github.com/repos/share/sharedb/issues/105","repository_url":"https://api.github.com/repos/share/sharedb","labels_url":"https://api.github.com/repos/share/sharedb/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/share/sharedb/issues/105/comments","events_url":"https://api.github.com/repos/share/sharedb/issues/105/events","html_url":"https://github.com/share/sharedb/issues/105","id":168141681,"number":105,"title":"\"TypeError: callback is not a function\" after upgrading sharedb and sharedb-mongo","user":{"login":"kbadk","id":1747366,"avatar_url":"https://avatars.githubusercontent.com/u/1747366?v=3","gravatar_id":"","url":"https://api.github.com/users/kbadk","html_url":"https://github.com/kbadk","followers_url":"https://api.github.com/users/kbadk/followers","following_url":"https://api.github.com/users/kbadk/following{/other_user}","gists_url":"https://api.github.com/users/kbadk/gists{/gist_id}","starred_url":"https://api.github.com/users/kbadk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbadk/subscriptions","organizations_url":"https://api.github.com/users/kbadk/orgs","repos_url":"https://api.github.com/users/kbadk/repos","events_url":"https://api.github.com/users/kbadk/events{/privacy}","received_events_url":"https://api.github.com/users/kbadk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T16:40:56Z","updated_at":"2016-07-28T18:04:33Z","closed_at":null,"body":"After upgrading ShareDB 0.11.36 to  1.0.0-beta.3 and ShareDB-Mongo 0.8.7 1.0.0-beta, I'm now getting:\r\n\r\n```\r\nCaught exception: TypeError: callback is not a function\r\nTypeError: callback is not a function\r\n    at Backend.submit (.../node_modules/sharedb/lib/backend.js:154:19)\r\n    at module.exports (.../helpers/DocumentManager.js:17:7)\r\n    at Object.<anonymous> (.../webstrates.js:49:62)\r\n    at Module._compile (module.js:541:32)\r\n    at Object.Module._extensions..js (module.js:550:10)\r\n    at Module.load (module.js:458:32)\r\n    at tryModuleLoad (module.js:417:12)\r\n    at Function.Module._load (module.js:409:3)\r\n    at Function.Module.runMain (module.js:575:10)\r\n    at startup (node.js:160:18)\r\n```\r\n\r\nWhen calling:\r\n\r\n```javascript\r\nshare.submit(agent, collectionName, documentName, { v: 0, create: [] }, callback);\r\n```\r\n\r\nI've read the [CHANGELOG](https://github.com/share/sharedb/blob/master/CHANGELOG.md), but that does not seem to indicate that I have to change anything."},"comment":{"url":"https://api.github.com/repos/share/sharedb/issues/comments/235976229","html_url":"https://github.com/share/sharedb/issues/105#issuecomment-235976229","issue_url":"https://api.github.com/repos/share/sharedb/issues/105","id":235976229,"user":{"login":"kbadk","id":1747366,"avatar_url":"https://avatars.githubusercontent.com/u/1747366?v=3","gravatar_id":"","url":"https://api.github.com/users/kbadk","html_url":"https://github.com/kbadk","followers_url":"https://api.github.com/users/kbadk/followers","following_url":"https://api.github.com/users/kbadk/following{/other_user}","gists_url":"https://api.github.com/users/kbadk/gists{/gist_id}","starred_url":"https://api.github.com/users/kbadk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbadk/subscriptions","organizations_url":"https://api.github.com/users/kbadk/orgs","repos_url":"https://api.github.com/users/kbadk/repos","events_url":"https://api.github.com/users/kbadk/events{/privacy}","received_events_url":"https://api.github.com/users/kbadk/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T18:04:33Z","updated_at":"2016-07-28T18:04:33Z","body":"Okay, I got it solved by adding an empty options parameter inbetween the op and the callback:\r\n\r\n```javascript\r\nshare.submit(agent, collectionName, documentName, { v: 0, create: [] }, null, callback);\r\n```\r\n"}}
{"actor":{"display_login":"kbadk"}}