{"action":"created","comment":{"url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/comments/210861361","pull_request_review_id":147165755,"id":210861361,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDg2MTM2MQ==","diff_hunk":"@@ -0,0 +1,69 @@\n+const express = require(\"express\");\n+const router = express.Router();\n+const db = require(\"./model/schema\");\n+\n+\n+\n+\n+\n+router.get(\"/data\", (req, res) => { console.log(\"i am working\"); });\n+\n+\n+router.post(\"/user/register/:username/:password/:confirmPassword/:email/:firstName/:lastName\", (req, res) => {\n+\n+\n+    db.User.find({ $or:[{username: req.params.username},{email: req.params.email}]}, (err, obj) => {\n+\n+        if (err) {\n+            console.log(\"error during checking the username\");","path":"routes.js","position":18,"original_position":18,"commit_id":"5679027184bf4aa6680c2733f72df61a52fcb4b5","original_commit_id":"5679027184bf4aa6680c2733f72df61a52fcb4b5","user":{"login":"nodeexcel","id":27336099,"node_id":"MDQ6VXNlcjI3MzM2MDk5","avatar_url":"https://avatars0.githubusercontent.com/u/27336099?v=4","gravatar_id":"","url":"https://api.github.com/users/nodeexcel","html_url":"https://github.com/nodeexcel","followers_url":"https://api.github.com/users/nodeexcel/followers","following_url":"https://api.github.com/users/nodeexcel/following{/other_user}","gists_url":"https://api.github.com/users/nodeexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/nodeexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodeexcel/subscriptions","organizations_url":"https://api.github.com/users/nodeexcel/orgs","repos_url":"https://api.github.com/users/nodeexcel/repos","events_url":"https://api.github.com/users/nodeexcel/events{/privacy}","received_events_url":"https://api.github.com/users/nodeexcel/received_events","type":"User","site_admin":false},"body":"remove consoles and do proper formatting.","created_at":"2018-08-17T09:57:42Z","updated_at":"2018-08-17T09:57:42Z","html_url":"https://github.com/Parvez098/express-tutorial/pull/1#discussion_r210861361","pull_request_url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/comments/210861361"},"html":{"href":"https://github.com/Parvez098/express-tutorial/pull/1#discussion_r210861361"},"pull_request":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1","id":209098222,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MDk4MjIy","html_url":"https://github.com/Parvez098/express-tutorial/pull/1","diff_url":"https://github.com/Parvez098/express-tutorial/pull/1.diff","patch_url":"https://github.com/Parvez098/express-tutorial/pull/1.patch","issue_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues/1","number":1,"state":"open","locked":false,"title":"express question number 1","user":{"login":"Parvez098","id":42340271,"node_id":"MDQ6VXNlcjQyMzQwMjcx","avatar_url":"https://avatars0.githubusercontent.com/u/42340271?v=4","gravatar_id":"","url":"https://api.github.com/users/Parvez098","html_url":"https://github.com/Parvez098","followers_url":"https://api.github.com/users/Parvez098/followers","following_url":"https://api.github.com/users/Parvez098/following{/other_user}","gists_url":"https://api.github.com/users/Parvez098/gists{/gist_id}","starred_url":"https://api.github.com/users/Parvez098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parvez098/subscriptions","organizations_url":"https://api.github.com/users/Parvez098/orgs","repos_url":"https://api.github.com/users/Parvez098/repos","events_url":"https://api.github.com/users/Parvez098/events{/privacy}","received_events_url":"https://api.github.com/users/Parvez098/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-17T09:49:35Z","updated_at":"2018-08-17T09:57:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b971c561d9fa6a7a0a8673275e32e975945c6839","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues/1/comments","statuses_url":"https://api.github.com/repos/Parvez098/express-tutorial/statuses/5679027184bf4aa6680c2733f72df61a52fcb4b5","head":{"label":"Parvez098:parvez","ref":"parvez","sha":"5679027184bf4aa6680c2733f72df61a52fcb4b5","user":{"login":"Parvez098","id":42340271,"node_id":"MDQ6VXNlcjQyMzQwMjcx","avatar_url":"https://avatars0.githubusercontent.com/u/42340271?v=4","gravatar_id":"","url":"https://api.github.com/users/Parvez098","html_url":"https://github.com/Parvez098","followers_url":"https://api.github.com/users/Parvez098/followers","following_url":"https://api.github.com/users/Parvez098/following{/other_user}","gists_url":"https://api.github.com/users/Parvez098/gists{/gist_id}","starred_url":"https://api.github.com/users/Parvez098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parvez098/subscriptions","organizations_url":"https://api.github.com/users/Parvez098/orgs","repos_url":"https://api.github.com/users/Parvez098/repos","events_url":"https://api.github.com/users/Parvez098/events{/privacy}","received_events_url":"https://api.github.com/users/Parvez098/received_events","type":"User","site_admin":false},"repo":{"id":145102372,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUxMDIzNzI=","name":"express-tutorial","full_name":"Parvez098/express-tutorial","owner":{"login":"Parvez098","id":42340271,"node_id":"MDQ6VXNlcjQyMzQwMjcx","avatar_url":"https://avatars0.githubusercontent.com/u/42340271?v=4","gravatar_id":"","url":"https://api.github.com/users/Parvez098","html_url":"https://github.com/Parvez098","followers_url":"https://api.github.com/users/Parvez098/followers","following_url":"https://api.github.com/users/Parvez098/following{/other_user}","gists_url":"https://api.github.com/users/Parvez098/gists{/gist_id}","starred_url":"https://api.github.com/users/Parvez098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parvez098/subscriptions","organizations_url":"https://api.github.com/users/Parvez098/orgs","repos_url":"https://api.github.com/users/Parvez098/repos","events_url":"https://api.github.com/users/Parvez098/events{/privacy}","received_events_url":"https://api.github.com/users/Parvez098/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Parvez098/express-tutorial","description":"tutorial series for express","fork":false,"url":"https://api.github.com/repos/Parvez098/express-tutorial","forks_url":"https://api.github.com/repos/Parvez098/express-tutorial/forks","keys_url":"https://api.github.com/repos/Parvez098/express-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Parvez098/express-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Parvez098/express-tutorial/teams","hooks_url":"https://api.github.com/repos/Parvez098/express-tutorial/hooks","issue_events_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/Parvez098/express-tutorial/events","assignees_url":"https://api.github.com/repos/Parvez098/express-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/Parvez098/express-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/Parvez098/express-tutorial/tags","blobs_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Parvez098/express-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/Parvez098/express-tutorial/languages","stargazers_url":"https://api.github.com/repos/Parvez098/express-tutorial/stargazers","contributors_url":"https://api.github.com/repos/Parvez098/express-tutorial/contributors","subscribers_url":"https://api.github.com/repos/Parvez098/express-tutorial/subscribers","subscription_url":"https://api.github.com/repos/Parvez098/express-tutorial/subscription","commits_url":"https://api.github.com/repos/Parvez098/express-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/Parvez098/express-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/Parvez098/express-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/Parvez098/express-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Parvez098/express-tutorial/merges","archive_url":"https://api.github.com/repos/Parvez098/express-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Parvez098/express-tutorial/downloads","issues_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/Parvez098/express-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/Parvez098/express-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Parvez098/express-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/Parvez098/express-tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/Parvez098/express-tutorial/deployments","created_at":"2018-08-17T09:41:40Z","updated_at":"2018-08-17T09:41:43Z","pushed_at":"2018-08-17T09:49:36Z","git_url":"git://github.com/Parvez098/express-tutorial.git","ssh_url":"git@github.com:Parvez098/express-tutorial.git","clone_url":"https://github.com/Parvez098/express-tutorial.git","svn_url":"https://github.com/Parvez098/express-tutorial","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Parvez098:master","ref":"master","sha":"2d8ee569b87cee4c03b5418012056db30735df79","user":{"login":"Parvez098","id":42340271,"node_id":"MDQ6VXNlcjQyMzQwMjcx","avatar_url":"https://avatars0.githubusercontent.com/u/42340271?v=4","gravatar_id":"","url":"https://api.github.com/users/Parvez098","html_url":"https://github.com/Parvez098","followers_url":"https://api.github.com/users/Parvez098/followers","following_url":"https://api.github.com/users/Parvez098/following{/other_user}","gists_url":"https://api.github.com/users/Parvez098/gists{/gist_id}","starred_url":"https://api.github.com/users/Parvez098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parvez098/subscriptions","organizations_url":"https://api.github.com/users/Parvez098/orgs","repos_url":"https://api.github.com/users/Parvez098/repos","events_url":"https://api.github.com/users/Parvez098/events{/privacy}","received_events_url":"https://api.github.com/users/Parvez098/received_events","type":"User","site_admin":false},"repo":{"id":145102372,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUxMDIzNzI=","name":"express-tutorial","full_name":"Parvez098/express-tutorial","owner":{"login":"Parvez098","id":42340271,"node_id":"MDQ6VXNlcjQyMzQwMjcx","avatar_url":"https://avatars0.githubusercontent.com/u/42340271?v=4","gravatar_id":"","url":"https://api.github.com/users/Parvez098","html_url":"https://github.com/Parvez098","followers_url":"https://api.github.com/users/Parvez098/followers","following_url":"https://api.github.com/users/Parvez098/following{/other_user}","gists_url":"https://api.github.com/users/Parvez098/gists{/gist_id}","starred_url":"https://api.github.com/users/Parvez098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parvez098/subscriptions","organizations_url":"https://api.github.com/users/Parvez098/orgs","repos_url":"https://api.github.com/users/Parvez098/repos","events_url":"https://api.github.com/users/Parvez098/events{/privacy}","received_events_url":"https://api.github.com/users/Parvez098/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Parvez098/express-tutorial","description":"tutorial series for express","fork":false,"url":"https://api.github.com/repos/Parvez098/express-tutorial","forks_url":"https://api.github.com/repos/Parvez098/express-tutorial/forks","keys_url":"https://api.github.com/repos/Parvez098/express-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Parvez098/express-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Parvez098/express-tutorial/teams","hooks_url":"https://api.github.com/repos/Parvez098/express-tutorial/hooks","issue_events_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/Parvez098/express-tutorial/events","assignees_url":"https://api.github.com/repos/Parvez098/express-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/Parvez098/express-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/Parvez098/express-tutorial/tags","blobs_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Parvez098/express-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/Parvez098/express-tutorial/languages","stargazers_url":"https://api.github.com/repos/Parvez098/express-tutorial/stargazers","contributors_url":"https://api.github.com/repos/Parvez098/express-tutorial/contributors","subscribers_url":"https://api.github.com/repos/Parvez098/express-tutorial/subscribers","subscription_url":"https://api.github.com/repos/Parvez098/express-tutorial/subscription","commits_url":"https://api.github.com/repos/Parvez098/express-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/Parvez098/express-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/Parvez098/express-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/Parvez098/express-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/Parvez098/express-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Parvez098/express-tutorial/merges","archive_url":"https://api.github.com/repos/Parvez098/express-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Parvez098/express-tutorial/downloads","issues_url":"https://api.github.com/repos/Parvez098/express-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/Parvez098/express-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/Parvez098/express-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/Parvez098/express-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Parvez098/express-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/Parvez098/express-tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/Parvez098/express-tutorial/deployments","created_at":"2018-08-17T09:41:40Z","updated_at":"2018-08-17T09:41:43Z","pushed_at":"2018-08-17T09:49:36Z","git_url":"git://github.com/Parvez098/express-tutorial.git","ssh_url":"git@github.com:Parvez098/express-tutorial.git","clone_url":"https://github.com/Parvez098/express-tutorial.git","svn_url":"https://github.com/Parvez098/express-tutorial","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1"},"html":{"href":"https://github.com/Parvez098/express-tutorial/pull/1"},"issue":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/issues/1"},"comments":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Parvez098/express-tutorial/statuses/5679027184bf4aa6680c2733f72df61a52fcb4b5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"nodeexcel"}}