{"action":"created","comment":{"url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/comments/88234003","pull_request_review_id":8812350,"id":88234003,"diff_hunk":"@@ -26,8 +26,16 @@ app.use(methodOverride(function (req, res) {\n \n app.use('/admin', adminRouter);\n \n+app.post('/comments', (req, res) => {\n+  db.Comment.create(req.body).then((comment) => {\n+    return comment.getPost().then((post) => {\n+      res.redirect('/' + post.slug);\n+    });\n+  });\n+});\n+\n app.get('/', (req, res) => {\n-  db.Post.findAll().then((blogPosts) => {\n+  db.Post.findAll({ order: [['createdAt', 'DESC']] }).then((blogPosts) => {","path":"index.js","position":14,"original_position":14,"commit_id":"9d3dbbef306cfd67d7cc32bbf8636b299dab3ebd","original_commit_id":"9d3dbbef306cfd67d7cc32bbf8636b299dab3ebd","user":{"login":"kfungwm","id":22517627,"avatar_url":"https://avatars.githubusercontent.com/u/22517627?v=3","gravatar_id":"","url":"https://api.github.com/users/kfungwm","html_url":"https://github.com/kfungwm","followers_url":"https://api.github.com/users/kfungwm/followers","following_url":"https://api.github.com/users/kfungwm/following{/other_user}","gists_url":"https://api.github.com/users/kfungwm/gists{/gist_id}","starred_url":"https://api.github.com/users/kfungwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfungwm/subscriptions","organizations_url":"https://api.github.com/users/kfungwm/orgs","repos_url":"https://api.github.com/users/kfungwm/repos","events_url":"https://api.github.com/users/kfungwm/events{/privacy}","received_events_url":"https://api.github.com/users/kfungwm/received_events","type":"User","site_admin":false},"body":"({ order: [['createdAt', 'DESC']] }) \r\nWhat does this mean?","created_at":"2016-11-16T13:19:56Z","updated_at":"2016-11-16T13:20:54Z","html_url":"https://github.com/izelnakri/nycda-blog-application/pull/2#discussion_r88234003","pull_request_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/comments/88234003"},"html":{"href":"https://github.com/izelnakri/nycda-blog-application/pull/2#discussion_r88234003"},"pull_request":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2","id":93940423,"html_url":"https://github.com/izelnakri/nycda-blog-application/pull/2","diff_url":"https://github.com/izelnakri/nycda-blog-application/pull/2.diff","patch_url":"https://github.com/izelnakri/nycda-blog-application/pull/2.patch","issue_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/2","number":2,"state":"open","locked":false,"title":"Comments","user":{"login":"izelnakri","id":1190931,"avatar_url":"https://avatars.githubusercontent.com/u/1190931?v=3","gravatar_id":"","url":"https://api.github.com/users/izelnakri","html_url":"https://github.com/izelnakri","followers_url":"https://api.github.com/users/izelnakri/followers","following_url":"https://api.github.com/users/izelnakri/following{/other_user}","gists_url":"https://api.github.com/users/izelnakri/gists{/gist_id}","starred_url":"https://api.github.com/users/izelnakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izelnakri/subscriptions","organizations_url":"https://api.github.com/users/izelnakri/orgs","repos_url":"https://api.github.com/users/izelnakri/repos","events_url":"https://api.github.com/users/izelnakri/events{/privacy}","received_events_url":"https://api.github.com/users/izelnakri/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-16T10:38:28Z","updated_at":"2016-11-16T13:20:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acb8149ae49c9e92746649a7943d5c54fecfb9b6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2/commits","review_comments_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2/comments","review_comment_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/comments{/number}","comments_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/2/comments","statuses_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/statuses/9d3dbbef306cfd67d7cc32bbf8636b299dab3ebd","head":{"label":"izelnakri:comments","ref":"comments","sha":"9d3dbbef306cfd67d7cc32bbf8636b299dab3ebd","user":{"login":"izelnakri","id":1190931,"avatar_url":"https://avatars.githubusercontent.com/u/1190931?v=3","gravatar_id":"","url":"https://api.github.com/users/izelnakri","html_url":"https://github.com/izelnakri","followers_url":"https://api.github.com/users/izelnakri/followers","following_url":"https://api.github.com/users/izelnakri/following{/other_user}","gists_url":"https://api.github.com/users/izelnakri/gists{/gist_id}","starred_url":"https://api.github.com/users/izelnakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izelnakri/subscriptions","organizations_url":"https://api.github.com/users/izelnakri/orgs","repos_url":"https://api.github.com/users/izelnakri/repos","events_url":"https://api.github.com/users/izelnakri/events{/privacy}","received_events_url":"https://api.github.com/users/izelnakri/received_events","type":"User","site_admin":false},"repo":{"id":73816020,"name":"nycda-blog-application","full_name":"izelnakri/nycda-blog-application","owner":{"login":"izelnakri","id":1190931,"avatar_url":"https://avatars.githubusercontent.com/u/1190931?v=3","gravatar_id":"","url":"https://api.github.com/users/izelnakri","html_url":"https://github.com/izelnakri","followers_url":"https://api.github.com/users/izelnakri/followers","following_url":"https://api.github.com/users/izelnakri/following{/other_user}","gists_url":"https://api.github.com/users/izelnakri/gists{/gist_id}","starred_url":"https://api.github.com/users/izelnakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izelnakri/subscriptions","organizations_url":"https://api.github.com/users/izelnakri/orgs","repos_url":"https://api.github.com/users/izelnakri/repos","events_url":"https://api.github.com/users/izelnakri/events{/privacy}","received_events_url":"https://api.github.com/users/izelnakri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/izelnakri/nycda-blog-application","description":null,"fork":false,"url":"https://api.github.com/repos/izelnakri/nycda-blog-application","forks_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/forks","keys_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/teams","hooks_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/hooks","issue_events_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/events{/number}","events_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/events","assignees_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/assignees{/user}","branches_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/branches{/branch}","tags_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/tags","blobs_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/refs{/sha}","trees_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/statuses/{sha}","languages_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/languages","stargazers_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/stargazers","contributors_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/contributors","subscribers_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/subscribers","subscription_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/subscription","commits_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/commits{/sha}","git_commits_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/commits{/sha}","comments_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/comments{/number}","issue_comment_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/comments{/number}","contents_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/contents/{+path}","compare_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/merges","archive_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/downloads","issues_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues{/number}","pulls_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls{/number}","milestones_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/milestones{/number}","notifications_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/labels{/name}","releases_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/releases{/id}","deployments_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/deployments","created_at":"2016-11-15T13:26:22Z","updated_at":"2016-11-15T13:28:33Z","pushed_at":"2016-11-16T10:58:17Z","git_url":"git://github.com/izelnakri/nycda-blog-application.git","ssh_url":"git@github.com:izelnakri/nycda-blog-application.git","clone_url":"https://github.com/izelnakri/nycda-blog-application.git","svn_url":"https://github.com/izelnakri/nycda-blog-application","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":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":"refactoring"}},"base":{"label":"izelnakri:refactoring","ref":"refactoring","sha":"957ef33f6ce853805eb8e8f0517b355556670970","user":{"login":"izelnakri","id":1190931,"avatar_url":"https://avatars.githubusercontent.com/u/1190931?v=3","gravatar_id":"","url":"https://api.github.com/users/izelnakri","html_url":"https://github.com/izelnakri","followers_url":"https://api.github.com/users/izelnakri/followers","following_url":"https://api.github.com/users/izelnakri/following{/other_user}","gists_url":"https://api.github.com/users/izelnakri/gists{/gist_id}","starred_url":"https://api.github.com/users/izelnakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izelnakri/subscriptions","organizations_url":"https://api.github.com/users/izelnakri/orgs","repos_url":"https://api.github.com/users/izelnakri/repos","events_url":"https://api.github.com/users/izelnakri/events{/privacy}","received_events_url":"https://api.github.com/users/izelnakri/received_events","type":"User","site_admin":false},"repo":{"id":73816020,"name":"nycda-blog-application","full_name":"izelnakri/nycda-blog-application","owner":{"login":"izelnakri","id":1190931,"avatar_url":"https://avatars.githubusercontent.com/u/1190931?v=3","gravatar_id":"","url":"https://api.github.com/users/izelnakri","html_url":"https://github.com/izelnakri","followers_url":"https://api.github.com/users/izelnakri/followers","following_url":"https://api.github.com/users/izelnakri/following{/other_user}","gists_url":"https://api.github.com/users/izelnakri/gists{/gist_id}","starred_url":"https://api.github.com/users/izelnakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izelnakri/subscriptions","organizations_url":"https://api.github.com/users/izelnakri/orgs","repos_url":"https://api.github.com/users/izelnakri/repos","events_url":"https://api.github.com/users/izelnakri/events{/privacy}","received_events_url":"https://api.github.com/users/izelnakri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/izelnakri/nycda-blog-application","description":null,"fork":false,"url":"https://api.github.com/repos/izelnakri/nycda-blog-application","forks_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/forks","keys_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/teams","hooks_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/hooks","issue_events_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/events{/number}","events_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/events","assignees_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/assignees{/user}","branches_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/branches{/branch}","tags_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/tags","blobs_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/refs{/sha}","trees_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/statuses/{sha}","languages_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/languages","stargazers_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/stargazers","contributors_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/contributors","subscribers_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/subscribers","subscription_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/subscription","commits_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/commits{/sha}","git_commits_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/git/commits{/sha}","comments_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/comments{/number}","issue_comment_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/comments{/number}","contents_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/contents/{+path}","compare_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/merges","archive_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/downloads","issues_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues{/number}","pulls_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls{/number}","milestones_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/milestones{/number}","notifications_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/labels{/name}","releases_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/releases{/id}","deployments_url":"https://api.github.com/repos/izelnakri/nycda-blog-application/deployments","created_at":"2016-11-15T13:26:22Z","updated_at":"2016-11-15T13:28:33Z","pushed_at":"2016-11-16T10:58:17Z","git_url":"git://github.com/izelnakri/nycda-blog-application.git","ssh_url":"git@github.com:izelnakri/nycda-blog-application.git","clone_url":"https://github.com/izelnakri/nycda-blog-application.git","svn_url":"https://github.com/izelnakri/nycda-blog-application","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":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":"refactoring"}},"_links":{"self":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2"},"html":{"href":"https://github.com/izelnakri/nycda-blog-application/pull/2"},"issue":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/2"},"comments":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/izelnakri/nycda-blog-application/statuses/9d3dbbef306cfd67d7cc32bbf8636b299dab3ebd"}}}}
{"actor":{"display_login":"kfungwm"}}