{"action":"created","comment":{"url":"https://api.github.com/repos/steemit/faucet-admin/pulls/comments/167603570","pull_request_review_id":95845444,"id":167603570,"diff_hunk":"@@ -171,4 +171,14 @@ router.post('/reject', authenticate(), (req, res, next) => {\n   });\n });\n \n+router.post('/delete', authenticate(), (req, res, next) => {\n+  req.db.users.destroy({ where: { id: req.body['ids[]'] } })\n+    .then(function (rows) {\n+      res.json({\n+        success: rows === req.body['ids[]'].length,\n+        ids: req.body['ids[]'],\n+      });\n+    });","path":"routes/index.js","position":11,"original_position":11,"commit_id":"e1a7eccd5975a0df0a37ffe9aac331c74ca49645","original_commit_id":"e1a7eccd5975a0df0a37ffe9aac331c74ca49645","user":{"login":"jnordberg","id":95886,"avatar_url":"https://avatars3.githubusercontent.com/u/95886?v=4","gravatar_id":"","url":"https://api.github.com/users/jnordberg","html_url":"https://github.com/jnordberg","followers_url":"https://api.github.com/users/jnordberg/followers","following_url":"https://api.github.com/users/jnordberg/following{/other_user}","gists_url":"https://api.github.com/users/jnordberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jnordberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnordberg/subscriptions","organizations_url":"https://api.github.com/users/jnordberg/orgs","repos_url":"https://api.github.com/users/jnordberg/repos","events_url":"https://api.github.com/users/jnordberg/events{/privacy}","received_events_url":"https://api.github.com/users/jnordberg/received_events","type":"User","site_admin":false},"body":"That would be great, add the Bunyan request logger as well","created_at":"2018-02-12T16:10:40Z","updated_at":"2018-02-12T16:10:41Z","html_url":"https://github.com/steemit/faucet-admin/pull/28#discussion_r167603570","pull_request_url":"https://api.github.com/repos/steemit/faucet-admin/pulls/28","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/steemit/faucet-admin/pulls/comments/167603570"},"html":{"href":"https://github.com/steemit/faucet-admin/pull/28#discussion_r167603570"},"pull_request":{"href":"https://api.github.com/repos/steemit/faucet-admin/pulls/28"}},"in_reply_to_id":167597517},"pull_request":{"url":"https://api.github.com/repos/steemit/faucet-admin/pulls/28","id":167925163,"html_url":"https://github.com/steemit/faucet-admin/pull/28","diff_url":"https://github.com/steemit/faucet-admin/pull/28.diff","patch_url":"https://github.com/steemit/faucet-admin/pull/28.patch","issue_url":"https://api.github.com/repos/steemit/faucet-admin/issues/28","number":28,"state":"open","locked":false,"title":"Add a button on all lists to be able to delete users","user":{"login":"gregory-latinier","id":13222767,"avatar_url":"https://avatars3.githubusercontent.com/u/13222767?v=4","gravatar_id":"","url":"https://api.github.com/users/gregory-latinier","html_url":"https://github.com/gregory-latinier","followers_url":"https://api.github.com/users/gregory-latinier/followers","following_url":"https://api.github.com/users/gregory-latinier/following{/other_user}","gists_url":"https://api.github.com/users/gregory-latinier/gists{/gist_id}","starred_url":"https://api.github.com/users/gregory-latinier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregory-latinier/subscriptions","organizations_url":"https://api.github.com/users/gregory-latinier/orgs","repos_url":"https://api.github.com/users/gregory-latinier/repos","events_url":"https://api.github.com/users/gregory-latinier/events{/privacy}","received_events_url":"https://api.github.com/users/gregory-latinier/received_events","type":"User","site_admin":false},"body":"Add delete button\r\nAdd an error message when no users are selected","created_at":"2018-02-08T10:01:31Z","updated_at":"2018-02-12T16:10:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5b283c4baafeb30256352557c8b97b858cc0fe6","assignee":{"login":"gregory-latinier","id":13222767,"avatar_url":"https://avatars3.githubusercontent.com/u/13222767?v=4","gravatar_id":"","url":"https://api.github.com/users/gregory-latinier","html_url":"https://github.com/gregory-latinier","followers_url":"https://api.github.com/users/gregory-latinier/followers","following_url":"https://api.github.com/users/gregory-latinier/following{/other_user}","gists_url":"https://api.github.com/users/gregory-latinier/gists{/gist_id}","starred_url":"https://api.github.com/users/gregory-latinier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregory-latinier/subscriptions","organizations_url":"https://api.github.com/users/gregory-latinier/orgs","repos_url":"https://api.github.com/users/gregory-latinier/repos","events_url":"https://api.github.com/users/gregory-latinier/events{/privacy}","received_events_url":"https://api.github.com/users/gregory-latinier/received_events","type":"User","site_admin":false},"assignees":[{"login":"gregory-latinier","id":13222767,"avatar_url":"https://avatars3.githubusercontent.com/u/13222767?v=4","gravatar_id":"","url":"https://api.github.com/users/gregory-latinier","html_url":"https://github.com/gregory-latinier","followers_url":"https://api.github.com/users/gregory-latinier/followers","following_url":"https://api.github.com/users/gregory-latinier/following{/other_user}","gists_url":"https://api.github.com/users/gregory-latinier/gists{/gist_id}","starred_url":"https://api.github.com/users/gregory-latinier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregory-latinier/subscriptions","organizations_url":"https://api.github.com/users/gregory-latinier/orgs","repos_url":"https://api.github.com/users/gregory-latinier/repos","events_url":"https://api.github.com/users/gregory-latinier/events{/privacy}","received_events_url":"https://api.github.com/users/gregory-latinier/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"bonustrack","id":16245250,"avatar_url":"https://avatars3.githubusercontent.com/u/16245250?v=4","gravatar_id":"","url":"https://api.github.com/users/bonustrack","html_url":"https://github.com/bonustrack","followers_url":"https://api.github.com/users/bonustrack/followers","following_url":"https://api.github.com/users/bonustrack/following{/other_user}","gists_url":"https://api.github.com/users/bonustrack/gists{/gist_id}","starred_url":"https://api.github.com/users/bonustrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonustrack/subscriptions","organizations_url":"https://api.github.com/users/bonustrack/orgs","repos_url":"https://api.github.com/users/bonustrack/repos","events_url":"https://api.github.com/users/bonustrack/events{/privacy}","received_events_url":"https://api.github.com/users/bonustrack/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":750234830,"url":"https://api.github.com/repos/steemit/faucet-admin/labels/Feature","name":"Feature","color":"65ABFF","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/steemit/faucet-admin/pulls/28/commits","review_comments_url":"https://api.github.com/repos/steemit/faucet-admin/pulls/28/comments","review_comment_url":"https://api.github.com/repos/steemit/faucet-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/steemit/faucet-admin/issues/28/comments","statuses_url":"https://api.github.com/repos/steemit/faucet-admin/statuses/e1a7eccd5975a0df0a37ffe9aac331c74ca49645","head":{"label":"steemit:feat-delete-users","ref":"feat-delete-users","sha":"e1a7eccd5975a0df0a37ffe9aac331c74ca49645","user":{"login":"steemit","id":17434692,"avatar_url":"https://avatars3.githubusercontent.com/u/17434692?v=4","gravatar_id":"","url":"https://api.github.com/users/steemit","html_url":"https://github.com/steemit","followers_url":"https://api.github.com/users/steemit/followers","following_url":"https://api.github.com/users/steemit/following{/other_user}","gists_url":"https://api.github.com/users/steemit/gists{/gist_id}","starred_url":"https://api.github.com/users/steemit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steemit/subscriptions","organizations_url":"https://api.github.com/users/steemit/orgs","repos_url":"https://api.github.com/users/steemit/repos","events_url":"https://api.github.com/users/steemit/events{/privacy}","received_events_url":"https://api.github.com/users/steemit/received_events","type":"Organization","site_admin":false},"repo":{"id":110710340,"name":"faucet-admin","full_name":"steemit/faucet-admin","owner":{"login":"steemit","id":17434692,"avatar_url":"https://avatars3.githubusercontent.com/u/17434692?v=4","gravatar_id":"","url":"https://api.github.com/users/steemit","html_url":"https://github.com/steemit","followers_url":"https://api.github.com/users/steemit/followers","following_url":"https://api.github.com/users/steemit/following{/other_user}","gists_url":"https://api.github.com/users/steemit/gists{/gist_id}","starred_url":"https://api.github.com/users/steemit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steemit/subscriptions","organizations_url":"https://api.github.com/users/steemit/orgs","repos_url":"https://api.github.com/users/steemit/repos","events_url":"https://api.github.com/users/steemit/events{/privacy}","received_events_url":"https://api.github.com/users/steemit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/steemit/faucet-admin","description":"Admin backend approval UI for account creation faucet","fork":false,"url":"https://api.github.com/repos/steemit/faucet-admin","forks_url":"https://api.github.com/repos/steemit/faucet-admin/forks","keys_url":"https://api.github.com/repos/steemit/faucet-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steemit/faucet-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steemit/faucet-admin/teams","hooks_url":"https://api.github.com/repos/steemit/faucet-admin/hooks","issue_events_url":"https://api.github.com/repos/steemit/faucet-admin/issues/events{/number}","events_url":"https://api.github.com/repos/steemit/faucet-admin/events","assignees_url":"https://api.github.com/repos/steemit/faucet-admin/assignees{/user}","branches_url":"https://api.github.com/repos/steemit/faucet-admin/branches{/branch}","tags_url":"https://api.github.com/repos/steemit/faucet-admin/tags","blobs_url":"https://api.github.com/repos/steemit/faucet-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steemit/faucet-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steemit/faucet-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/steemit/faucet-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steemit/faucet-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/steemit/faucet-admin/languages","stargazers_url":"https://api.github.com/repos/steemit/faucet-admin/stargazers","contributors_url":"https://api.github.com/repos/steemit/faucet-admin/contributors","subscribers_url":"https://api.github.com/repos/steemit/faucet-admin/subscribers","subscription_url":"https://api.github.com/repos/steemit/faucet-admin/subscription","commits_url":"https://api.github.com/repos/steemit/faucet-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/steemit/faucet-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/steemit/faucet-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/steemit/faucet-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/steemit/faucet-admin/contents/{+path}","compare_url":"https://api.github.com/repos/steemit/faucet-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steemit/faucet-admin/merges","archive_url":"https://api.github.com/repos/steemit/faucet-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steemit/faucet-admin/downloads","issues_url":"https://api.github.com/repos/steemit/faucet-admin/issues{/number}","pulls_url":"https://api.github.com/repos/steemit/faucet-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/steemit/faucet-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/steemit/faucet-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steemit/faucet-admin/labels{/name}","releases_url":"https://api.github.com/repos/steemit/faucet-admin/releases{/id}","deployments_url":"https://api.github.com/repos/steemit/faucet-admin/deployments","created_at":"2017-11-14T15:46:15Z","updated_at":"2018-01-15T15:57:24Z","pushed_at":"2018-02-12T14:09:42Z","git_url":"git://github.com/steemit/faucet-admin.git","ssh_url":"git@github.com:steemit/faucet-admin.git","clone_url":"https://github.com/steemit/faucet-admin.git","svn_url":"https://github.com/steemit/faucet-admin","homepage":"","size":966,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"steemit:master","ref":"master","sha":"d1637e8d4fb6268d73a621507bd07e172f83eefa","user":{"login":"steemit","id":17434692,"avatar_url":"https://avatars3.githubusercontent.com/u/17434692?v=4","gravatar_id":"","url":"https://api.github.com/users/steemit","html_url":"https://github.com/steemit","followers_url":"https://api.github.com/users/steemit/followers","following_url":"https://api.github.com/users/steemit/following{/other_user}","gists_url":"https://api.github.com/users/steemit/gists{/gist_id}","starred_url":"https://api.github.com/users/steemit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steemit/subscriptions","organizations_url":"https://api.github.com/users/steemit/orgs","repos_url":"https://api.github.com/users/steemit/repos","events_url":"https://api.github.com/users/steemit/events{/privacy}","received_events_url":"https://api.github.com/users/steemit/received_events","type":"Organization","site_admin":false},"repo":{"id":110710340,"name":"faucet-admin","full_name":"steemit/faucet-admin","owner":{"login":"steemit","id":17434692,"avatar_url":"https://avatars3.githubusercontent.com/u/17434692?v=4","gravatar_id":"","url":"https://api.github.com/users/steemit","html_url":"https://github.com/steemit","followers_url":"https://api.github.com/users/steemit/followers","following_url":"https://api.github.com/users/steemit/following{/other_user}","gists_url":"https://api.github.com/users/steemit/gists{/gist_id}","starred_url":"https://api.github.com/users/steemit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steemit/subscriptions","organizations_url":"https://api.github.com/users/steemit/orgs","repos_url":"https://api.github.com/users/steemit/repos","events_url":"https://api.github.com/users/steemit/events{/privacy}","received_events_url":"https://api.github.com/users/steemit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/steemit/faucet-admin","description":"Admin backend approval UI for account creation faucet","fork":false,"url":"https://api.github.com/repos/steemit/faucet-admin","forks_url":"https://api.github.com/repos/steemit/faucet-admin/forks","keys_url":"https://api.github.com/repos/steemit/faucet-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steemit/faucet-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steemit/faucet-admin/teams","hooks_url":"https://api.github.com/repos/steemit/faucet-admin/hooks","issue_events_url":"https://api.github.com/repos/steemit/faucet-admin/issues/events{/number}","events_url":"https://api.github.com/repos/steemit/faucet-admin/events","assignees_url":"https://api.github.com/repos/steemit/faucet-admin/assignees{/user}","branches_url":"https://api.github.com/repos/steemit/faucet-admin/branches{/branch}","tags_url":"https://api.github.com/repos/steemit/faucet-admin/tags","blobs_url":"https://api.github.com/repos/steemit/faucet-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steemit/faucet-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steemit/faucet-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/steemit/faucet-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steemit/faucet-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/steemit/faucet-admin/languages","stargazers_url":"https://api.github.com/repos/steemit/faucet-admin/stargazers","contributors_url":"https://api.github.com/repos/steemit/faucet-admin/contributors","subscribers_url":"https://api.github.com/repos/steemit/faucet-admin/subscribers","subscription_url":"https://api.github.com/repos/steemit/faucet-admin/subscription","commits_url":"https://api.github.com/repos/steemit/faucet-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/steemit/faucet-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/steemit/faucet-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/steemit/faucet-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/steemit/faucet-admin/contents/{+path}","compare_url":"https://api.github.com/repos/steemit/faucet-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steemit/faucet-admin/merges","archive_url":"https://api.github.com/repos/steemit/faucet-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steemit/faucet-admin/downloads","issues_url":"https://api.github.com/repos/steemit/faucet-admin/issues{/number}","pulls_url":"https://api.github.com/repos/steemit/faucet-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/steemit/faucet-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/steemit/faucet-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steemit/faucet-admin/labels{/name}","releases_url":"https://api.github.com/repos/steemit/faucet-admin/releases{/id}","deployments_url":"https://api.github.com/repos/steemit/faucet-admin/deployments","created_at":"2017-11-14T15:46:15Z","updated_at":"2018-01-15T15:57:24Z","pushed_at":"2018-02-12T14:09:42Z","git_url":"git://github.com/steemit/faucet-admin.git","ssh_url":"git@github.com:steemit/faucet-admin.git","clone_url":"https://github.com/steemit/faucet-admin.git","svn_url":"https://github.com/steemit/faucet-admin","homepage":"","size":966,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/steemit/faucet-admin/pulls/28"},"html":{"href":"https://github.com/steemit/faucet-admin/pull/28"},"issue":{"href":"https://api.github.com/repos/steemit/faucet-admin/issues/28"},"comments":{"href":"https://api.github.com/repos/steemit/faucet-admin/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/steemit/faucet-admin/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/steemit/faucet-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/steemit/faucet-admin/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/steemit/faucet-admin/statuses/e1a7eccd5975a0df0a37ffe9aac331c74ca49645"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jnordberg"}}