{"action":"created","issue":{"url":"https://api.github.com/repos/Rapidfacture/mongoose-multi/issues/4","repository_url":"https://api.github.com/repos/Rapidfacture/mongoose-multi","labels_url":"https://api.github.com/repos/Rapidfacture/mongoose-multi/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Rapidfacture/mongoose-multi/issues/4/comments","events_url":"https://api.github.com/repos/Rapidfacture/mongoose-multi/issues/4/events","html_url":"https://github.com/Rapidfacture/mongoose-multi/pull/4","id":324588013,"number":4,"title":"Updates to mongoose 5.1.1.  Corrects readme.md","user":{"login":"gofreddo","id":2431474,"avatar_url":"https://avatars0.githubusercontent.com/u/2431474?v=4","gravatar_id":"","url":"https://api.github.com/users/gofreddo","html_url":"https://github.com/gofreddo","followers_url":"https://api.github.com/users/gofreddo/followers","following_url":"https://api.github.com/users/gofreddo/following{/other_user}","gists_url":"https://api.github.com/users/gofreddo/gists{/gist_id}","starred_url":"https://api.github.com/users/gofreddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gofreddo/subscriptions","organizations_url":"https://api.github.com/users/gofreddo/orgs","repos_url":"https://api.github.com/users/gofreddo/repos","events_url":"https://api.github.com/users/gofreddo/events{/privacy}","received_events_url":"https://api.github.com/users/gofreddo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-19T00:53:11Z","updated_at":"2018-05-20T08:58:12Z","closed_at":"2018-05-20T08:53:39Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Rapidfacture/mongoose-multi/pulls/4","html_url":"https://github.com/Rapidfacture/mongoose-multi/pull/4","diff_url":"https://github.com/Rapidfacture/mongoose-multi/pull/4.diff","patch_url":"https://github.com/Rapidfacture/mongoose-multi/pull/4.patch"},"body":"I updated the Mongoose version.\r\n\r\nWe found the readme had errors.  When you pass in a string to mongooseMulti.start it does a require that is relative to ./node_modules/mongoose-multi and can't find your path. Using mongooseMulti.start(dbConfig, node.env.PWD + './schemas.js'); corrects this issue.\r\n\r\nAlso dbConfig wants an object like:\r\n{\r\n         \"application\": 'mongodb://localhost:27017/application',\r\n         \"book\": 'mongodb://localhost:27017/books'\r\n}\r\n\r\nYour Network config file example exports \r\n{\r\n     \"db\":{\r\n         \"application\": 'mongodb://localhost:27017/application',\r\n         \"book\": 'mongodb://localhost:27017/books'\r\n     }\r\n }\r\n\r\nEither it should skip the \"db\": and just export the correct object or \r\ndbConfig = require('./config.js')\r\nshould be\r\ndbConfig = require('./config.js').db\r\n\r\nThanks for the repo though.  Other than those issues it is working great."},"comment":{"url":"https://api.github.com/repos/Rapidfacture/mongoose-multi/issues/comments/390467234","html_url":"https://github.com/Rapidfacture/mongoose-multi/pull/4#issuecomment-390467234","issue_url":"https://api.github.com/repos/Rapidfacture/mongoose-multi/issues/4","id":390467234,"user":{"login":"gofreddo","id":2431474,"avatar_url":"https://avatars0.githubusercontent.com/u/2431474?v=4","gravatar_id":"","url":"https://api.github.com/users/gofreddo","html_url":"https://github.com/gofreddo","followers_url":"https://api.github.com/users/gofreddo/followers","following_url":"https://api.github.com/users/gofreddo/following{/other_user}","gists_url":"https://api.github.com/users/gofreddo/gists{/gist_id}","starred_url":"https://api.github.com/users/gofreddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gofreddo/subscriptions","organizations_url":"https://api.github.com/users/gofreddo/orgs","repos_url":"https://api.github.com/users/gofreddo/repos","events_url":"https://api.github.com/users/gofreddo/events{/privacy}","received_events_url":"https://api.github.com/users/gofreddo/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T08:58:12Z","updated_at":"2018-05-20T08:58:12Z","author_association":"CONTRIBUTOR","body":"thanks"}}
{"actor":{"display_login":"gofreddo"}}