{"action":"created","comment":{"url":"https://api.github.com/repos/enJames/BEConnect/pulls/comments/183204938","pull_request_review_id":114167688,"id":183204938,"diff_hunk":"@@ -51,6 +51,22 @@ const UsersController = {\n             return SendResponse(res, 401, 'Credentials do not match');\n         }\n         return SendResponse(res, 200, `Welcome ${email}`);\n+    },\n+    remove: (req, res) => {\n+        const { userId } = req.params;\n+        let exists;\n+\n+        Users.forEach((user, index) => {\n+            if (user.userId === parseInt(userId, 10)) {\n+                Users.splice(index, 1);\n+                exists = true;\n+            }\n+        });\n+\n+        if (!exists) {\n+            return SendResponse(res, 404, 'There was an error');\n+        }\n+        return SendResponse(res, 200, 'Account deleted');","path":"server/controllers/UsersController.js","position":19,"original_position":19,"commit_id":"66a7ba40f390a44a8ba2d97f2749da5fd3b3b4b8","original_commit_id":"66a7ba40f390a44a8ba2d97f2749da5fd3b3b4b8","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected linebreaks to be 'CRLF' but found 'LF'      linebreak-style","created_at":"2018-04-21T09:06:25Z","updated_at":"2018-04-21T09:06:27Z","html_url":"https://github.com/enJames/BEConnect/pull/36#discussion_r183204938","pull_request_url":"https://api.github.com/repos/enJames/BEConnect/pulls/36","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/comments/183204938"},"html":{"href":"https://github.com/enJames/BEConnect/pull/36#discussion_r183204938"},"pull_request":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/enJames/BEConnect/pulls/36","id":183214152,"html_url":"https://github.com/enJames/BEConnect/pull/36","diff_url":"https://github.com/enJames/BEConnect/pull/36.diff","patch_url":"https://github.com/enJames/BEConnect/pull/36.patch","issue_url":"https://api.github.com/repos/enJames/BEConnect/issues/36","number":36,"state":"open","locked":false,"title":"Add delete account feature","user":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-21T09:06:11Z","updated_at":"2018-04-21T09:06:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db38826c884442567326e8a50c2887f8b4510bc4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/enJames/BEConnect/pulls/36/commits","review_comments_url":"https://api.github.com/repos/enJames/BEConnect/pulls/36/comments","review_comment_url":"https://api.github.com/repos/enJames/BEConnect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enJames/BEConnect/issues/36/comments","statuses_url":"https://api.github.com/repos/enJames/BEConnect/statuses/66a7ba40f390a44a8ba2d97f2749da5fd3b3b4b8","head":{"label":"enJames:feature/delete-account/#156914579","ref":"feature/delete-account/#156914579","sha":"66a7ba40f390a44a8ba2d97f2749da5fd3b3b4b8","user":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"repo":{"id":126645689,"name":"BEConnect","full_name":"enJames/BEConnect","owner":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enJames/BEConnect","description":null,"fork":false,"url":"https://api.github.com/repos/enJames/BEConnect","forks_url":"https://api.github.com/repos/enJames/BEConnect/forks","keys_url":"https://api.github.com/repos/enJames/BEConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enJames/BEConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enJames/BEConnect/teams","hooks_url":"https://api.github.com/repos/enJames/BEConnect/hooks","issue_events_url":"https://api.github.com/repos/enJames/BEConnect/issues/events{/number}","events_url":"https://api.github.com/repos/enJames/BEConnect/events","assignees_url":"https://api.github.com/repos/enJames/BEConnect/assignees{/user}","branches_url":"https://api.github.com/repos/enJames/BEConnect/branches{/branch}","tags_url":"https://api.github.com/repos/enJames/BEConnect/tags","blobs_url":"https://api.github.com/repos/enJames/BEConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enJames/BEConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enJames/BEConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/enJames/BEConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enJames/BEConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/enJames/BEConnect/languages","stargazers_url":"https://api.github.com/repos/enJames/BEConnect/stargazers","contributors_url":"https://api.github.com/repos/enJames/BEConnect/contributors","subscribers_url":"https://api.github.com/repos/enJames/BEConnect/subscribers","subscription_url":"https://api.github.com/repos/enJames/BEConnect/subscription","commits_url":"https://api.github.com/repos/enJames/BEConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/enJames/BEConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/enJames/BEConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/enJames/BEConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/enJames/BEConnect/contents/{+path}","compare_url":"https://api.github.com/repos/enJames/BEConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enJames/BEConnect/merges","archive_url":"https://api.github.com/repos/enJames/BEConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enJames/BEConnect/downloads","issues_url":"https://api.github.com/repos/enJames/BEConnect/issues{/number}","pulls_url":"https://api.github.com/repos/enJames/BEConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/enJames/BEConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/enJames/BEConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enJames/BEConnect/labels{/name}","releases_url":"https://api.github.com/repos/enJames/BEConnect/releases{/id}","deployments_url":"https://api.github.com/repos/enJames/BEConnect/deployments","created_at":"2018-03-24T22:33:47Z","updated_at":"2018-04-21T08:49:05Z","pushed_at":"2018-04-21T09:06:11Z","git_url":"git://github.com/enJames/BEConnect.git","ssh_url":"git@github.com:enJames/BEConnect.git","clone_url":"https://github.com/enJames/BEConnect.git","svn_url":"https://github.com/enJames/BEConnect","homepage":null,"size":10157,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"enJames:develop","ref":"develop","sha":"c91d89f2141d7db8dfc916d2b01d1d8268496011","user":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"repo":{"id":126645689,"name":"BEConnect","full_name":"enJames/BEConnect","owner":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enJames/BEConnect","description":null,"fork":false,"url":"https://api.github.com/repos/enJames/BEConnect","forks_url":"https://api.github.com/repos/enJames/BEConnect/forks","keys_url":"https://api.github.com/repos/enJames/BEConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enJames/BEConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enJames/BEConnect/teams","hooks_url":"https://api.github.com/repos/enJames/BEConnect/hooks","issue_events_url":"https://api.github.com/repos/enJames/BEConnect/issues/events{/number}","events_url":"https://api.github.com/repos/enJames/BEConnect/events","assignees_url":"https://api.github.com/repos/enJames/BEConnect/assignees{/user}","branches_url":"https://api.github.com/repos/enJames/BEConnect/branches{/branch}","tags_url":"https://api.github.com/repos/enJames/BEConnect/tags","blobs_url":"https://api.github.com/repos/enJames/BEConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enJames/BEConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enJames/BEConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/enJames/BEConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enJames/BEConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/enJames/BEConnect/languages","stargazers_url":"https://api.github.com/repos/enJames/BEConnect/stargazers","contributors_url":"https://api.github.com/repos/enJames/BEConnect/contributors","subscribers_url":"https://api.github.com/repos/enJames/BEConnect/subscribers","subscription_url":"https://api.github.com/repos/enJames/BEConnect/subscription","commits_url":"https://api.github.com/repos/enJames/BEConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/enJames/BEConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/enJames/BEConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/enJames/BEConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/enJames/BEConnect/contents/{+path}","compare_url":"https://api.github.com/repos/enJames/BEConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enJames/BEConnect/merges","archive_url":"https://api.github.com/repos/enJames/BEConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enJames/BEConnect/downloads","issues_url":"https://api.github.com/repos/enJames/BEConnect/issues{/number}","pulls_url":"https://api.github.com/repos/enJames/BEConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/enJames/BEConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/enJames/BEConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enJames/BEConnect/labels{/name}","releases_url":"https://api.github.com/repos/enJames/BEConnect/releases{/id}","deployments_url":"https://api.github.com/repos/enJames/BEConnect/deployments","created_at":"2018-03-24T22:33:47Z","updated_at":"2018-04-21T08:49:05Z","pushed_at":"2018-04-21T09:06:11Z","git_url":"git://github.com/enJames/BEConnect.git","ssh_url":"git@github.com:enJames/BEConnect.git","clone_url":"https://github.com/enJames/BEConnect.git","svn_url":"https://github.com/enJames/BEConnect","homepage":null,"size":10157,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/36"},"html":{"href":"https://github.com/enJames/BEConnect/pull/36"},"issue":{"href":"https://api.github.com/repos/enJames/BEConnect/issues/36"},"comments":{"href":"https://api.github.com/repos/enJames/BEConnect/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/enJames/BEConnect/statuses/66a7ba40f390a44a8ba2d97f2749da5fd3b3b4b8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}