{"action":"created","issue":{"url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db/issues/2","repository_url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db","labels_url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db/issues/2/comments","events_url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db/issues/2/events","html_url":"https://github.com/AbdullahAli/node-stream-to-mongo-db/pull/2","id":276075250,"number":2,"title":"fix batch insert","user":{"login":"fabienjuif","id":17828231,"avatar_url":"https://avatars0.githubusercontent.com/u/17828231?v=4","gravatar_id":"","url":"https://api.github.com/users/fabienjuif","html_url":"https://github.com/fabienjuif","followers_url":"https://api.github.com/users/fabienjuif/followers","following_url":"https://api.github.com/users/fabienjuif/following{/other_user}","gists_url":"https://api.github.com/users/fabienjuif/gists{/gist_id}","starred_url":"https://api.github.com/users/fabienjuif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabienjuif/subscriptions","organizations_url":"https://api.github.com/users/fabienjuif/orgs","repos_url":"https://api.github.com/users/fabienjuif/repos","events_url":"https://api.github.com/users/fabienjuif/events{/privacy}","received_events_url":"https://api.github.com/users/fabienjuif/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-22T13:53:22Z","updated_at":"2018-03-20T10:44:27Z","closed_at":"2018-03-20T10:42:57Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db/pulls/2","html_url":"https://github.com/AbdullahAli/node-stream-to-mongo-db/pull/2","diff_url":"https://github.com/AbdullahAli/node-stream-to-mongo-db/pull/2.diff","patch_url":"https://github.com/AbdullahAli/node-stream-to-mongo-db/pull/2.patch"},"body":"Hi\r\n\r\nWhen we set the `batchSize` option, the stream never ends.\r\nThis is because the first resolve (happening on the first `write` event) never resolves the Promise.\r\n\r\nThis PR fix that!\r\n\r\nThank you to share your work @AbdullahAli !"},"comment":{"url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db/issues/comments/374552078","html_url":"https://github.com/AbdullahAli/node-stream-to-mongo-db/pull/2#issuecomment-374552078","issue_url":"https://api.github.com/repos/AbdullahAli/node-stream-to-mongo-db/issues/2","id":374552078,"user":{"login":"fabienjuif","id":17828231,"avatar_url":"https://avatars0.githubusercontent.com/u/17828231?v=4","gravatar_id":"","url":"https://api.github.com/users/fabienjuif","html_url":"https://github.com/fabienjuif","followers_url":"https://api.github.com/users/fabienjuif/followers","following_url":"https://api.github.com/users/fabienjuif/following{/other_user}","gists_url":"https://api.github.com/users/fabienjuif/gists{/gist_id}","starred_url":"https://api.github.com/users/fabienjuif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabienjuif/subscriptions","organizations_url":"https://api.github.com/users/fabienjuif/orgs","repos_url":"https://api.github.com/users/fabienjuif/repos","events_url":"https://api.github.com/users/fabienjuif/events{/privacy}","received_events_url":"https://api.github.com/users/fabienjuif/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T10:44:27Z","updated_at":"2018-03-20T10:44:27Z","author_association":"CONTRIBUTOR","body":"thank you @AbdullahAli for the initial work and your merge :)\r\nDo you think you will publish a new version soon so I can reference back your lib (instead of my fork) and my client would be happy 😜"}}
{"actor":{"display_login":"fabienjuif"}}