{"action":"created","comment":{"url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments/219680858","pull_request_review_id":157920553,"id":219680858,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTY4MDg1OA==","diff_hunk":"@@ -146,17 +136,17 @@ Admin.DisputesController = Class(Admin, 'DisputesController').inherits(RestfulCo\n       });\n     },\n \n-    async update(req, res, next) {\n+    async update(req, res) {\n       const dispute = res.locals.dispute;\n \n       try {\n         await DisputeStatus.createForDispute(dispute, req.body);\n \n         req.flash('success', 'The dispute status has been updated.');\n-        res.redirect(config.router.helpers.Admin.Disputes.url());\n       } catch (e) {\n-        next(e);\n+        req.flash('error', e.message);\n       }\n+      res.redirect(config.router.helpers.Admin.Disputes.url());","path":"controllers/Admin/DisputesController.js","position":54,"original_position":54,"commit_id":"31f685bb6f831347228017ecb5e27aa8eaa6f15e","original_commit_id":"31f685bb6f831347228017ecb5e27aa8eaa6f15e","user":{"login":"orlando","id":849872,"node_id":"MDQ6VXNlcjg0OTg3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/849872?v=4","gravatar_id":"","url":"https://api.github.com/users/orlando","html_url":"https://github.com/orlando","followers_url":"https://api.github.com/users/orlando/followers","following_url":"https://api.github.com/users/orlando/following{/other_user}","gists_url":"https://api.github.com/users/orlando/gists{/gist_id}","starred_url":"https://api.github.com/users/orlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlando/subscriptions","organizations_url":"https://api.github.com/users/orlando/orgs","repos_url":"https://api.github.com/users/orlando/repos","events_url":"https://api.github.com/users/orlando/events{/privacy}","received_events_url":"https://api.github.com/users/orlando/received_events","type":"User","site_admin":false},"body":"oh ok, cool let's leave it like this a improve it later","created_at":"2018-09-22T19:53:08Z","updated_at":"2018-09-22T19:53:08Z","html_url":"https://github.com/debtcollective/dispute-tools/pull/62#discussion_r219680858","pull_request_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments/219680858"},"html":{"href":"https://github.com/debtcollective/dispute-tools/pull/62#discussion_r219680858"},"pull_request":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62"}},"in_reply_to_id":219679378},"pull_request":{"url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62","id":217471615,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NDcxNjE1","html_url":"https://github.com/debtcollective/dispute-tools/pull/62","diff_url":"https://github.com/debtcollective/dispute-tools/pull/62.diff","patch_url":"https://github.com/debtcollective/dispute-tools/pull/62.patch","issue_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/62","number":62,"state":"open","locked":false,"title":"Update admin status view","user":{"login":"marcondag","id":24264157,"node_id":"MDQ6VXNlcjI0MjY0MTU3","avatar_url":"https://avatars3.githubusercontent.com/u/24264157?v=4","gravatar_id":"","url":"https://api.github.com/users/marcondag","html_url":"https://github.com/marcondag","followers_url":"https://api.github.com/users/marcondag/followers","following_url":"https://api.github.com/users/marcondag/following{/other_user}","gists_url":"https://api.github.com/users/marcondag/gists{/gist_id}","starred_url":"https://api.github.com/users/marcondag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcondag/subscriptions","organizations_url":"https://api.github.com/users/marcondag/orgs","repos_url":"https://api.github.com/users/marcondag/repos","events_url":"https://api.github.com/users/marcondag/events{/privacy}","received_events_url":"https://api.github.com/users/marcondag/received_events","type":"User","site_admin":false},"body":"Resolves https://github.com/debtcollective/parent/issues/204\r\n\r\n<img width=\"398\" alt=\"screen shot 2018-09-22 at 11 30 57 am\" src=\"https://user-images.githubusercontent.com/24264157/45920575-0893b780-be5b-11e8-8f24-bfc98c42ac0d.png\">\r\n\r\nAlso adds the [chai-as-promised](https://www.chaijs.com/plugins/chai-as-promised/) library to clean up async test assertions.","created_at":"2018-09-22T18:31:31Z","updated_at":"2018-09-22T19:53:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf9dba7bbc687307386577990c54bed75d2667f9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"shoshber","id":1402948,"node_id":"MDQ6VXNlcjE0MDI5NDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1402948?v=4","gravatar_id":"","url":"https://api.github.com/users/shoshber","html_url":"https://github.com/shoshber","followers_url":"https://api.github.com/users/shoshber/followers","following_url":"https://api.github.com/users/shoshber/following{/other_user}","gists_url":"https://api.github.com/users/shoshber/gists{/gist_id}","starred_url":"https://api.github.com/users/shoshber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoshber/subscriptions","organizations_url":"https://api.github.com/users/shoshber/orgs","repos_url":"https://api.github.com/users/shoshber/repos","events_url":"https://api.github.com/users/shoshber/events{/privacy}","received_events_url":"https://api.github.com/users/shoshber/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62/commits","review_comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62/comments","review_comment_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/62/comments","statuses_url":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/31f685bb6f831347228017ecb5e27aa8eaa6f15e","head":{"label":"debtcollective:am/204/remove-comments","ref":"am/204/remove-comments","sha":"31f685bb6f831347228017ecb5e27aa8eaa6f15e","user":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"repo":{"id":122767402,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI3Njc0MDI=","name":"dispute-tools","full_name":"debtcollective/dispute-tools","private":false,"owner":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/debtcollective/dispute-tools","description":"The Debt Collective dispute tools service","fork":false,"url":"https://api.github.com/repos/debtcollective/dispute-tools","forks_url":"https://api.github.com/repos/debtcollective/dispute-tools/forks","keys_url":"https://api.github.com/repos/debtcollective/dispute-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/debtcollective/dispute-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/debtcollective/dispute-tools/teams","hooks_url":"https://api.github.com/repos/debtcollective/dispute-tools/hooks","issue_events_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/events{/number}","events_url":"https://api.github.com/repos/debtcollective/dispute-tools/events","assignees_url":"https://api.github.com/repos/debtcollective/dispute-tools/assignees{/user}","branches_url":"https://api.github.com/repos/debtcollective/dispute-tools/branches{/branch}","tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/tags","blobs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/debtcollective/dispute-tools/languages","stargazers_url":"https://api.github.com/repos/debtcollective/dispute-tools/stargazers","contributors_url":"https://api.github.com/repos/debtcollective/dispute-tools/contributors","subscribers_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscribers","subscription_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscription","commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/debtcollective/dispute-tools/contents/{+path}","compare_url":"https://api.github.com/repos/debtcollective/dispute-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/debtcollective/dispute-tools/merges","archive_url":"https://api.github.com/repos/debtcollective/dispute-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/debtcollective/dispute-tools/downloads","issues_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues{/number}","pulls_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/debtcollective/dispute-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/debtcollective/dispute-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/debtcollective/dispute-tools/labels{/name}","releases_url":"https://api.github.com/repos/debtcollective/dispute-tools/releases{/id}","deployments_url":"https://api.github.com/repos/debtcollective/dispute-tools/deployments","created_at":"2018-02-24T18:27:05Z","updated_at":"2018-09-18T02:10:05Z","pushed_at":"2018-09-22T18:36:01Z","git_url":"git://github.com/debtcollective/dispute-tools.git","ssh_url":"git@github.com:debtcollective/dispute-tools.git","clone_url":"https://github.com/debtcollective/dispute-tools.git","svn_url":"https://github.com/debtcollective/dispute-tools","homepage":null,"size":20883,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"debtcollective:development","ref":"development","sha":"47fcaba040b43d1f31cda799fab2a372af5513b7","user":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"repo":{"id":122767402,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI3Njc0MDI=","name":"dispute-tools","full_name":"debtcollective/dispute-tools","private":false,"owner":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/debtcollective/dispute-tools","description":"The Debt Collective dispute tools service","fork":false,"url":"https://api.github.com/repos/debtcollective/dispute-tools","forks_url":"https://api.github.com/repos/debtcollective/dispute-tools/forks","keys_url":"https://api.github.com/repos/debtcollective/dispute-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/debtcollective/dispute-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/debtcollective/dispute-tools/teams","hooks_url":"https://api.github.com/repos/debtcollective/dispute-tools/hooks","issue_events_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/events{/number}","events_url":"https://api.github.com/repos/debtcollective/dispute-tools/events","assignees_url":"https://api.github.com/repos/debtcollective/dispute-tools/assignees{/user}","branches_url":"https://api.github.com/repos/debtcollective/dispute-tools/branches{/branch}","tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/tags","blobs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/debtcollective/dispute-tools/languages","stargazers_url":"https://api.github.com/repos/debtcollective/dispute-tools/stargazers","contributors_url":"https://api.github.com/repos/debtcollective/dispute-tools/contributors","subscribers_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscribers","subscription_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscription","commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/debtcollective/dispute-tools/contents/{+path}","compare_url":"https://api.github.com/repos/debtcollective/dispute-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/debtcollective/dispute-tools/merges","archive_url":"https://api.github.com/repos/debtcollective/dispute-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/debtcollective/dispute-tools/downloads","issues_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues{/number}","pulls_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/debtcollective/dispute-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/debtcollective/dispute-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/debtcollective/dispute-tools/labels{/name}","releases_url":"https://api.github.com/repos/debtcollective/dispute-tools/releases{/id}","deployments_url":"https://api.github.com/repos/debtcollective/dispute-tools/deployments","created_at":"2018-02-24T18:27:05Z","updated_at":"2018-09-18T02:10:05Z","pushed_at":"2018-09-22T18:36:01Z","git_url":"git://github.com/debtcollective/dispute-tools.git","ssh_url":"git@github.com:debtcollective/dispute-tools.git","clone_url":"https://github.com/debtcollective/dispute-tools.git","svn_url":"https://github.com/debtcollective/dispute-tools","homepage":null,"size":20883,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62"},"html":{"href":"https://github.com/debtcollective/dispute-tools/pull/62"},"issue":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/issues/62"},"comments":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/31f685bb6f831347228017ecb5e27aa8eaa6f15e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"orlando"}}