{"action":"created","issue":{"url":"https://api.github.com/repos/mafintosh/mongojs/issues/258","labels_url":"https://api.github.com/repos/mafintosh/mongojs/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/mafintosh/mongojs/issues/258/comments","events_url":"https://api.github.com/repos/mafintosh/mongojs/issues/258/events","html_url":"https://github.com/mafintosh/mongojs/issues/258","id":113868459,"number":258,"title":"db.close => error : not a function","user":{"login":"jmengelle","id":7420078,"avatar_url":"https://avatars.githubusercontent.com/u/7420078?v=3","gravatar_id":"","url":"https://api.github.com/users/jmengelle","html_url":"https://github.com/jmengelle","followers_url":"https://api.github.com/users/jmengelle/followers","following_url":"https://api.github.com/users/jmengelle/following{/other_user}","gists_url":"https://api.github.com/users/jmengelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jmengelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmengelle/subscriptions","organizations_url":"https://api.github.com/users/jmengelle/orgs","repos_url":"https://api.github.com/users/jmengelle/repos","events_url":"https://api.github.com/users/jmengelle/events{/privacy}","received_events_url":"https://api.github.com/users/jmengelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-28T16:59:59Z","updated_at":"2015-12-02T13:27:37Z","closed_at":null,"body":"When i call db.close(), i got the error : \r\n\r\nTypeError: server.destroy is not a function\r\n    at d:\\[...]\\node_modules\\mongojs\\lib\\database.js:66:12\r\n\r\n```javascript\r\nDatabase.prototype.close = function (cb) {\r\n  cb = cb || noop\r\n  this._getServer(function (err, server) {\r\n    if (err) return cb(err)\r\n    server.destroy(true, true)\r\n    cb()\r\n  })\r\n}\r\n```\r\n\r\nI use mongo 3.x and mongojs 1.4.1"},"comment":{"url":"https://api.github.com/repos/mafintosh/mongojs/issues/comments/161289045","html_url":"https://github.com/mafintosh/mongojs/issues/258#issuecomment-161289045","issue_url":"https://api.github.com/repos/mafintosh/mongojs/issues/258","id":161289045,"user":{"login":"jmengelle","id":7420078,"avatar_url":"https://avatars.githubusercontent.com/u/7420078?v=3","gravatar_id":"","url":"https://api.github.com/users/jmengelle","html_url":"https://github.com/jmengelle","followers_url":"https://api.github.com/users/jmengelle/followers","following_url":"https://api.github.com/users/jmengelle/following{/other_user}","gists_url":"https://api.github.com/users/jmengelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jmengelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmengelle/subscriptions","organizations_url":"https://api.github.com/users/jmengelle/orgs","repos_url":"https://api.github.com/users/jmengelle/repos","events_url":"https://api.github.com/users/jmengelle/events{/privacy}","received_events_url":"https://api.github.com/users/jmengelle/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T13:27:37Z","updated_at":"2015-12-02T13:27:37Z","body":"Changed to 2.0.0, no more error. \r\nUsing mongo 3.0.x with ScramSHA1. \r\n\r\nAnd it seems that there is no more need to manually add the auth mechanism :)\r\n\r\nunfortunately, we migrate a few days ago to 'mongodb' module.\r\n"}}