{"action":"created","comment":{"url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/comments/144128823","pull_request_review_id":68743356,"id":144128823,"diff_hunk":"@@ -22,27 +22,33 @@\n //   - If not **successful** then send the user back to the **new** article route, `/products/:id`, where `:id` is the product that was just edited and a message that this action was unsucessful.\n \n \n-class Product {\n-  constructor(user, id) {\n-    this.user = user;\n-    this.id = id;\n-    this._collection = [];\n+//post\n+class Products {\n+  constructor(collection) {\n+    this._collection = collection|| [];\n   }\n-\n-  get(id){\n-    // find obj in _collection with id === id\n-\n-    // return found obj. typeof === object \n-\n+//post\n+  createProduct(name, price, inventory){\n+    //create product for \n+    let newProduct = {\n+      name: name,\n+      price: price,","path":"db/Products.js","position":25,"original_position":25,"commit_id":"cf017d41faa7ff9de5cc5c79f2048c386ff1e517","original_commit_id":"cf017d41faa7ff9de5cc5c79f2048c386ff1e517","user":{"login":"taesup","id":1203764,"avatar_url":"https://avatars2.githubusercontent.com/u/1203764?v=4","gravatar_id":"","url":"https://api.github.com/users/taesup","html_url":"https://github.com/taesup","followers_url":"https://api.github.com/users/taesup/followers","following_url":"https://api.github.com/users/taesup/following{/other_user}","gists_url":"https://api.github.com/users/taesup/gists{/gist_id}","starred_url":"https://api.github.com/users/taesup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taesup/subscriptions","organizations_url":"https://api.github.com/users/taesup/orgs","repos_url":"https://api.github.com/users/taesup/repos","events_url":"https://api.github.com/users/taesup/events{/privacy}","received_events_url":"https://api.github.com/users/taesup/received_events","type":"User","site_admin":false},"body":"missing inventory?","created_at":"2017-10-11T20:37:06Z","updated_at":"2017-10-11T20:38:55Z","html_url":"https://github.com/jlee709/articles-products-and-express/pull/1#discussion_r144128823","pull_request_url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/comments/144128823"},"html":{"href":"https://github.com/jlee709/articles-products-and-express/pull/1#discussion_r144128823"},"pull_request":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1","id":146048365,"html_url":"https://github.com/jlee709/articles-products-and-express/pull/1","diff_url":"https://github.com/jlee709/articles-products-and-express/pull/1.diff","patch_url":"https://github.com/jlee709/articles-products-and-express/pull/1.patch","issue_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/1","number":1,"state":"open","locked":false,"title":"J dev","user":{"login":"jlee709","id":12697789,"avatar_url":"https://avatars1.githubusercontent.com/u/12697789?v=4","gravatar_id":"","url":"https://api.github.com/users/jlee709","html_url":"https://github.com/jlee709","followers_url":"https://api.github.com/users/jlee709/followers","following_url":"https://api.github.com/users/jlee709/following{/other_user}","gists_url":"https://api.github.com/users/jlee709/gists{/gist_id}","starred_url":"https://api.github.com/users/jlee709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlee709/subscriptions","organizations_url":"https://api.github.com/users/jlee709/orgs","repos_url":"https://api.github.com/users/jlee709/repos","events_url":"https://api.github.com/users/jlee709/events{/privacy}","received_events_url":"https://api.github.com/users/jlee709/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-11T20:04:45Z","updated_at":"2017-10-11T20:38:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd015991355456454ee5561d563cac4e7e5eaf98","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/1/comments","statuses_url":"https://api.github.com/repos/jlee709/articles-products-and-express/statuses/cf017d41faa7ff9de5cc5c79f2048c386ff1e517","head":{"label":"jlee709:j_dev","ref":"j_dev","sha":"cf017d41faa7ff9de5cc5c79f2048c386ff1e517","user":{"login":"jlee709","id":12697789,"avatar_url":"https://avatars1.githubusercontent.com/u/12697789?v=4","gravatar_id":"","url":"https://api.github.com/users/jlee709","html_url":"https://github.com/jlee709","followers_url":"https://api.github.com/users/jlee709/followers","following_url":"https://api.github.com/users/jlee709/following{/other_user}","gists_url":"https://api.github.com/users/jlee709/gists{/gist_id}","starred_url":"https://api.github.com/users/jlee709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlee709/subscriptions","organizations_url":"https://api.github.com/users/jlee709/orgs","repos_url":"https://api.github.com/users/jlee709/repos","events_url":"https://api.github.com/users/jlee709/events{/privacy}","received_events_url":"https://api.github.com/users/jlee709/received_events","type":"User","site_admin":false},"repo":{"id":106341289,"name":"articles-products-and-express","full_name":"jlee709/articles-products-and-express","owner":{"login":"jlee709","id":12697789,"avatar_url":"https://avatars1.githubusercontent.com/u/12697789?v=4","gravatar_id":"","url":"https://api.github.com/users/jlee709","html_url":"https://github.com/jlee709","followers_url":"https://api.github.com/users/jlee709/followers","following_url":"https://api.github.com/users/jlee709/following{/other_user}","gists_url":"https://api.github.com/users/jlee709/gists{/gist_id}","starred_url":"https://api.github.com/users/jlee709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlee709/subscriptions","organizations_url":"https://api.github.com/users/jlee709/orgs","repos_url":"https://api.github.com/users/jlee709/repos","events_url":"https://api.github.com/users/jlee709/events{/privacy}","received_events_url":"https://api.github.com/users/jlee709/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlee709/articles-products-and-express","description":null,"fork":true,"url":"https://api.github.com/repos/jlee709/articles-products-and-express","forks_url":"https://api.github.com/repos/jlee709/articles-products-and-express/forks","keys_url":"https://api.github.com/repos/jlee709/articles-products-and-express/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlee709/articles-products-and-express/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlee709/articles-products-and-express/teams","hooks_url":"https://api.github.com/repos/jlee709/articles-products-and-express/hooks","issue_events_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/events{/number}","events_url":"https://api.github.com/repos/jlee709/articles-products-and-express/events","assignees_url":"https://api.github.com/repos/jlee709/articles-products-and-express/assignees{/user}","branches_url":"https://api.github.com/repos/jlee709/articles-products-and-express/branches{/branch}","tags_url":"https://api.github.com/repos/jlee709/articles-products-and-express/tags","blobs_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlee709/articles-products-and-express/statuses/{sha}","languages_url":"https://api.github.com/repos/jlee709/articles-products-and-express/languages","stargazers_url":"https://api.github.com/repos/jlee709/articles-products-and-express/stargazers","contributors_url":"https://api.github.com/repos/jlee709/articles-products-and-express/contributors","subscribers_url":"https://api.github.com/repos/jlee709/articles-products-and-express/subscribers","subscription_url":"https://api.github.com/repos/jlee709/articles-products-and-express/subscription","commits_url":"https://api.github.com/repos/jlee709/articles-products-and-express/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlee709/articles-products-and-express/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlee709/articles-products-and-express/contents/{+path}","compare_url":"https://api.github.com/repos/jlee709/articles-products-and-express/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlee709/articles-products-and-express/merges","archive_url":"https://api.github.com/repos/jlee709/articles-products-and-express/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlee709/articles-products-and-express/downloads","issues_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues{/number}","pulls_url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls{/number}","milestones_url":"https://api.github.com/repos/jlee709/articles-products-and-express/milestones{/number}","notifications_url":"https://api.github.com/repos/jlee709/articles-products-and-express/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlee709/articles-products-and-express/labels{/name}","releases_url":"https://api.github.com/repos/jlee709/articles-products-and-express/releases{/id}","deployments_url":"https://api.github.com/repos/jlee709/articles-products-and-express/deployments","created_at":"2017-10-09T22:21:37Z","updated_at":"2017-10-10T01:31:01Z","pushed_at":"2017-10-11T20:04:46Z","git_url":"git://github.com/jlee709/articles-products-and-express.git","ssh_url":"git@github.com:jlee709/articles-products-and-express.git","clone_url":"https://github.com/jlee709/articles-products-and-express.git","svn_url":"https://github.com/jlee709/articles-products-and-express","homepage":null,"size":30,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jlee709:master","ref":"master","sha":"ced0b65b58fb4fed8661b9b2034fc8166baacf89","user":{"login":"jlee709","id":12697789,"avatar_url":"https://avatars1.githubusercontent.com/u/12697789?v=4","gravatar_id":"","url":"https://api.github.com/users/jlee709","html_url":"https://github.com/jlee709","followers_url":"https://api.github.com/users/jlee709/followers","following_url":"https://api.github.com/users/jlee709/following{/other_user}","gists_url":"https://api.github.com/users/jlee709/gists{/gist_id}","starred_url":"https://api.github.com/users/jlee709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlee709/subscriptions","organizations_url":"https://api.github.com/users/jlee709/orgs","repos_url":"https://api.github.com/users/jlee709/repos","events_url":"https://api.github.com/users/jlee709/events{/privacy}","received_events_url":"https://api.github.com/users/jlee709/received_events","type":"User","site_admin":false},"repo":{"id":106341289,"name":"articles-products-and-express","full_name":"jlee709/articles-products-and-express","owner":{"login":"jlee709","id":12697789,"avatar_url":"https://avatars1.githubusercontent.com/u/12697789?v=4","gravatar_id":"","url":"https://api.github.com/users/jlee709","html_url":"https://github.com/jlee709","followers_url":"https://api.github.com/users/jlee709/followers","following_url":"https://api.github.com/users/jlee709/following{/other_user}","gists_url":"https://api.github.com/users/jlee709/gists{/gist_id}","starred_url":"https://api.github.com/users/jlee709/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlee709/subscriptions","organizations_url":"https://api.github.com/users/jlee709/orgs","repos_url":"https://api.github.com/users/jlee709/repos","events_url":"https://api.github.com/users/jlee709/events{/privacy}","received_events_url":"https://api.github.com/users/jlee709/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlee709/articles-products-and-express","description":null,"fork":true,"url":"https://api.github.com/repos/jlee709/articles-products-and-express","forks_url":"https://api.github.com/repos/jlee709/articles-products-and-express/forks","keys_url":"https://api.github.com/repos/jlee709/articles-products-and-express/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlee709/articles-products-and-express/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlee709/articles-products-and-express/teams","hooks_url":"https://api.github.com/repos/jlee709/articles-products-and-express/hooks","issue_events_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/events{/number}","events_url":"https://api.github.com/repos/jlee709/articles-products-and-express/events","assignees_url":"https://api.github.com/repos/jlee709/articles-products-and-express/assignees{/user}","branches_url":"https://api.github.com/repos/jlee709/articles-products-and-express/branches{/branch}","tags_url":"https://api.github.com/repos/jlee709/articles-products-and-express/tags","blobs_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlee709/articles-products-and-express/statuses/{sha}","languages_url":"https://api.github.com/repos/jlee709/articles-products-and-express/languages","stargazers_url":"https://api.github.com/repos/jlee709/articles-products-and-express/stargazers","contributors_url":"https://api.github.com/repos/jlee709/articles-products-and-express/contributors","subscribers_url":"https://api.github.com/repos/jlee709/articles-products-and-express/subscribers","subscription_url":"https://api.github.com/repos/jlee709/articles-products-and-express/subscription","commits_url":"https://api.github.com/repos/jlee709/articles-products-and-express/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlee709/articles-products-and-express/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlee709/articles-products-and-express/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlee709/articles-products-and-express/contents/{+path}","compare_url":"https://api.github.com/repos/jlee709/articles-products-and-express/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlee709/articles-products-and-express/merges","archive_url":"https://api.github.com/repos/jlee709/articles-products-and-express/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlee709/articles-products-and-express/downloads","issues_url":"https://api.github.com/repos/jlee709/articles-products-and-express/issues{/number}","pulls_url":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls{/number}","milestones_url":"https://api.github.com/repos/jlee709/articles-products-and-express/milestones{/number}","notifications_url":"https://api.github.com/repos/jlee709/articles-products-and-express/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlee709/articles-products-and-express/labels{/name}","releases_url":"https://api.github.com/repos/jlee709/articles-products-and-express/releases{/id}","deployments_url":"https://api.github.com/repos/jlee709/articles-products-and-express/deployments","created_at":"2017-10-09T22:21:37Z","updated_at":"2017-10-10T01:31:01Z","pushed_at":"2017-10-11T20:04:46Z","git_url":"git://github.com/jlee709/articles-products-and-express.git","ssh_url":"git@github.com:jlee709/articles-products-and-express.git","clone_url":"https://github.com/jlee709/articles-products-and-express.git","svn_url":"https://github.com/jlee709/articles-products-and-express","homepage":null,"size":30,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1"},"html":{"href":"https://github.com/jlee709/articles-products-and-express/pull/1"},"issue":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/1"},"comments":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jlee709/articles-products-and-express/statuses/cf017d41faa7ff9de5cc5c79f2048c386ff1e517"}},"author_association":"OWNER"}}
{"actor":{"display_login":"taesup"}}