{"action":"created","issue":{"url":"https://api.github.com/repos/Blockrazor/blockrazor/issues/157","repository_url":"https://api.github.com/repos/Blockrazor/blockrazor","labels_url":"https://api.github.com/repos/Blockrazor/blockrazor/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/Blockrazor/blockrazor/issues/157/comments","events_url":"https://api.github.com/repos/Blockrazor/blockrazor/issues/157/events","html_url":"https://github.com/Blockrazor/blockrazor/issues/157","id":293062640,"number":157,"title":"Problem: Iterating through the same collection multiple times is inefficient","user":{"login":"kevgathuku","id":3721994,"avatar_url":"https://avatars0.githubusercontent.com/u/3721994?v=4","gravatar_id":"","url":"https://api.github.com/users/kevgathuku","html_url":"https://github.com/kevgathuku","followers_url":"https://api.github.com/users/kevgathuku/followers","following_url":"https://api.github.com/users/kevgathuku/following{/other_user}","gists_url":"https://api.github.com/users/kevgathuku/gists{/gist_id}","starred_url":"https://api.github.com/users/kevgathuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevgathuku/subscriptions","organizations_url":"https://api.github.com/users/kevgathuku/orgs","repos_url":"https://api.github.com/users/kevgathuku/repos","events_url":"https://api.github.com/users/kevgathuku/events{/privacy}","received_events_url":"https://api.github.com/users/kevgathuku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-31T07:54:02Z","updated_at":"2018-02-01T13:44:41Z","closed_at":"2018-02-01T13:44:41Z","author_association":"CONTRIBUTOR","body":"Problem: Iterating through the same collection multiple times is inefficient\r\nThis is specifically for this instance:\r\nhttps://github.com/Blockrazor/blockrazor/blob/master/server/serverdb/addCoin.js#L48-L51\r\n\r\nSolution: \r\nUse one loop with multiple if..else statements to achieve the same functionality\r\n"},"comment":{"url":"https://api.github.com/repos/Blockrazor/blockrazor/issues/comments/362269729","html_url":"https://github.com/Blockrazor/blockrazor/issues/157#issuecomment-362269729","issue_url":"https://api.github.com/repos/Blockrazor/blockrazor/issues/157","id":362269729,"user":{"login":"kevgathuku","id":3721994,"avatar_url":"https://avatars0.githubusercontent.com/u/3721994?v=4","gravatar_id":"","url":"https://api.github.com/users/kevgathuku","html_url":"https://github.com/kevgathuku","followers_url":"https://api.github.com/users/kevgathuku/followers","following_url":"https://api.github.com/users/kevgathuku/following{/other_user}","gists_url":"https://api.github.com/users/kevgathuku/gists{/gist_id}","starred_url":"https://api.github.com/users/kevgathuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevgathuku/subscriptions","organizations_url":"https://api.github.com/users/kevgathuku/orgs","repos_url":"https://api.github.com/users/kevgathuku/repos","events_url":"https://api.github.com/users/kevgathuku/events{/privacy}","received_events_url":"https://api.github.com/users/kevgathuku/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T13:44:41Z","updated_at":"2018-02-01T13:44:41Z","author_association":"CONTRIBUTOR","body":"Hey @gazhayes yes, this fixes the issue.\r\nHappy to help out 😄 "}}
{"actor":{"display_login":"kevgathuku"}}