{"action":"created","comment":{"url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/comments/230013012","pull_request_review_id":170639396,"id":230013012,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDAxMzAxMg==","diff_hunk":"@@ -2,20 +2,115 @@ const debug = require('debug');\n \n const Team = require('./team.model');\n const User = require('../user/user.model');\n+const launchChromeAndRunLighthouse = require('../lighthouse/lighthouse');\n \n const log = debug('fcc:team:controller');\n \n function create(req, res) {\n-  const { body: team } = req;\n-  log(team);\n-  return Team.create(team)\n+  Team.create(req.body)\n     .then((newTeam) => {\n       if (!newTeam) {\n         return res.status(500).json({ acknowladged: false });\n       }\n-      res.status(200).json({ acknowladged: true });\n-      return newTeam._id;\n+      return Team.findOneAndUpdate(","path":"server/team/team.contoller.js","position":21,"original_position":19,"commit_id":"6a06bd64087bfc1628f490291c91d24a4cb209ef","original_commit_id":"7010cb88d2bfd9a3aa077575eadfbcf54ce7cdb3","user":{"login":"Bouncey","id":18572518,"node_id":"MDQ6VXNlcjE4NTcyNTE4","avatar_url":"https://avatars1.githubusercontent.com/u/18572518?v=4","gravatar_id":"","url":"https://api.github.com/users/Bouncey","html_url":"https://github.com/Bouncey","followers_url":"https://api.github.com/users/Bouncey/followers","following_url":"https://api.github.com/users/Bouncey/following{/other_user}","gists_url":"https://api.github.com/users/Bouncey/gists{/gist_id}","starred_url":"https://api.github.com/users/Bouncey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bouncey/subscriptions","organizations_url":"https://api.github.com/users/Bouncey/orgs","repos_url":"https://api.github.com/users/Bouncey/repos","events_url":"https://api.github.com/users/Bouncey/events{/privacy}","received_events_url":"https://api.github.com/users/Bouncey/received_events","type":"User","site_admin":false},"body":"I think you have got a bit delete happy here and merged `/create` with `/update`","created_at":"2018-11-01T11:30:30Z","updated_at":"2018-11-01T11:47:52Z","html_url":"https://github.com/freeCodeCamp/hackathon-leaderboard/pull/8#discussion_r230013012","pull_request_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/comments/230013012"},"html":{"href":"https://github.com/freeCodeCamp/hackathon-leaderboard/pull/8#discussion_r230013012"},"pull_request":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8","id":227466041,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NDY2MDQx","html_url":"https://github.com/freeCodeCamp/hackathon-leaderboard/pull/8","diff_url":"https://github.com/freeCodeCamp/hackathon-leaderboard/pull/8.diff","patch_url":"https://github.com/freeCodeCamp/hackathon-leaderboard/pull/8.patch","issue_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/issues/8","number":8,"state":"open","locked":false,"title":"collect lighthouse results in team documents","user":{"login":"tbushman","id":7049294,"node_id":"MDQ6VXNlcjcwNDkyOTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7049294?v=4","gravatar_id":"","url":"https://api.github.com/users/tbushman","html_url":"https://github.com/tbushman","followers_url":"https://api.github.com/users/tbushman/followers","following_url":"https://api.github.com/users/tbushman/following{/other_user}","gists_url":"https://api.github.com/users/tbushman/gists{/gist_id}","starred_url":"https://api.github.com/users/tbushman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbushman/subscriptions","organizations_url":"https://api.github.com/users/tbushman/orgs","repos_url":"https://api.github.com/users/tbushman/repos","events_url":"https://api.github.com/users/tbushman/events{/privacy}","received_events_url":"https://api.github.com/users/tbushman/received_events","type":"User","site_admin":false},"body":"In response to #2 we can use an array in the Team schema for collecting Lighthouse queries. Also added the beginning of a table in Vue....","created_at":"2018-10-31T22:54:07Z","updated_at":"2018-11-01T11:47:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"812e5337c9911716e853510b6346d555fdc994cd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8/commits","review_comments_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8/comments","review_comment_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/issues/8/comments","statuses_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/statuses/6a06bd64087bfc1628f490291c91d24a4cb209ef","head":{"label":"tbushman:fix/querylighthouse","ref":"fix/querylighthouse","sha":"6a06bd64087bfc1628f490291c91d24a4cb209ef","user":{"login":"tbushman","id":7049294,"node_id":"MDQ6VXNlcjcwNDkyOTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7049294?v=4","gravatar_id":"","url":"https://api.github.com/users/tbushman","html_url":"https://github.com/tbushman","followers_url":"https://api.github.com/users/tbushman/followers","following_url":"https://api.github.com/users/tbushman/following{/other_user}","gists_url":"https://api.github.com/users/tbushman/gists{/gist_id}","starred_url":"https://api.github.com/users/tbushman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbushman/subscriptions","organizations_url":"https://api.github.com/users/tbushman/orgs","repos_url":"https://api.github.com/users/tbushman/repos","events_url":"https://api.github.com/users/tbushman/events{/privacy}","received_events_url":"https://api.github.com/users/tbushman/received_events","type":"User","site_admin":false},"repo":{"id":155608407,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU2MDg0MDc=","name":"hackathon-leaderboard","full_name":"tbushman/hackathon-leaderboard","private":false,"owner":{"login":"tbushman","id":7049294,"node_id":"MDQ6VXNlcjcwNDkyOTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7049294?v=4","gravatar_id":"","url":"https://api.github.com/users/tbushman","html_url":"https://github.com/tbushman","followers_url":"https://api.github.com/users/tbushman/followers","following_url":"https://api.github.com/users/tbushman/following{/other_user}","gists_url":"https://api.github.com/users/tbushman/gists{/gist_id}","starred_url":"https://api.github.com/users/tbushman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbushman/subscriptions","organizations_url":"https://api.github.com/users/tbushman/orgs","repos_url":"https://api.github.com/users/tbushman/repos","events_url":"https://api.github.com/users/tbushman/events{/privacy}","received_events_url":"https://api.github.com/users/tbushman/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tbushman/hackathon-leaderboard","description":"An open source hackathon leaderboard","fork":true,"url":"https://api.github.com/repos/tbushman/hackathon-leaderboard","forks_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/forks","keys_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/teams","hooks_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/hooks","issue_events_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/issues/events{/number}","events_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/events","assignees_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/assignees{/user}","branches_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/branches{/branch}","tags_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/tags","blobs_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/statuses/{sha}","languages_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/languages","stargazers_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/stargazers","contributors_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/contributors","subscribers_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/subscribers","subscription_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/subscription","commits_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/contents/{+path}","compare_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/merges","archive_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/downloads","issues_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/issues{/number}","pulls_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/pulls{/number}","milestones_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/milestones{/number}","notifications_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/labels{/name}","releases_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/releases{/id}","deployments_url":"https://api.github.com/repos/tbushman/hackathon-leaderboard/deployments","created_at":"2018-10-31T18:53:54Z","updated_at":"2018-10-31T18:53:57Z","pushed_at":"2018-11-01T11:27:53Z","git_url":"git://github.com/tbushman/hackathon-leaderboard.git","ssh_url":"git@github.com:tbushman/hackathon-leaderboard.git","clone_url":"https://github.com/tbushman/hackathon-leaderboard.git","svn_url":"https://github.com/tbushman/hackathon-leaderboard","homepage":"","size":427,"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":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"freeCodeCamp:master","ref":"master","sha":"70a7459d74aa3c76d18943dbf6865d5da619184b","user":{"login":"freeCodeCamp","id":9892522,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk4OTI1MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/9892522?v=4","gravatar_id":"","url":"https://api.github.com/users/freeCodeCamp","html_url":"https://github.com/freeCodeCamp","followers_url":"https://api.github.com/users/freeCodeCamp/followers","following_url":"https://api.github.com/users/freeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/freeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/freeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/freeCodeCamp/orgs","repos_url":"https://api.github.com/users/freeCodeCamp/repos","events_url":"https://api.github.com/users/freeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/freeCodeCamp/received_events","type":"Organization","site_admin":false},"repo":{"id":154690849,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ2OTA4NDk=","name":"hackathon-leaderboard","full_name":"freeCodeCamp/hackathon-leaderboard","private":false,"owner":{"login":"freeCodeCamp","id":9892522,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk4OTI1MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/9892522?v=4","gravatar_id":"","url":"https://api.github.com/users/freeCodeCamp","html_url":"https://github.com/freeCodeCamp","followers_url":"https://api.github.com/users/freeCodeCamp/followers","following_url":"https://api.github.com/users/freeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/freeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/freeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/freeCodeCamp/orgs","repos_url":"https://api.github.com/users/freeCodeCamp/repos","events_url":"https://api.github.com/users/freeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/freeCodeCamp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/freeCodeCamp/hackathon-leaderboard","description":"An open source hackathon leaderboard","fork":false,"url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard","forks_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/forks","keys_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/teams","hooks_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/hooks","issue_events_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/issues/events{/number}","events_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/events","assignees_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/assignees{/user}","branches_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/branches{/branch}","tags_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/tags","blobs_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/statuses/{sha}","languages_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/languages","stargazers_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/stargazers","contributors_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/contributors","subscribers_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/subscribers","subscription_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/subscription","commits_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/contents/{+path}","compare_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/merges","archive_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/downloads","issues_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/issues{/number}","pulls_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls{/number}","milestones_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/milestones{/number}","notifications_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/labels{/name}","releases_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/releases{/id}","deployments_url":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/deployments","created_at":"2018-10-25T15:03:27Z","updated_at":"2018-10-31T20:33:13Z","pushed_at":"2018-11-01T11:27:55Z","git_url":"git://github.com/freeCodeCamp/hackathon-leaderboard.git","ssh_url":"git@github.com:freeCodeCamp/hackathon-leaderboard.git","clone_url":"https://github.com/freeCodeCamp/hackathon-leaderboard.git","svn_url":"https://github.com/freeCodeCamp/hackathon-leaderboard","homepage":"","size":420,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8"},"html":{"href":"https://github.com/freeCodeCamp/hackathon-leaderboard/pull/8"},"issue":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/issues/8"},"comments":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/freeCodeCamp/hackathon-leaderboard/statuses/6a06bd64087bfc1628f490291c91d24a4cb209ef"}},"author_association":"NONE"}}
{"actor":{"display_login":"Bouncey"}}