{"action":"created","comment":{"url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/comments/182072522","pull_request_review_id":112809615,"id":182072522,"diff_hunk":"@@ -1,20 +1,28 @@\n+const questionAmount = 30   // amount of questions\n+\n /**\n  * checks the users answers against api answers\n  *\n  * @return Promise - containing the result object ready for the api\n  */\n async function checkAnswers() {\n-    let userAnswers = getUserAnswers()\n+    let userAnswers = getUserAnswers() // answers entered by user\n     let userScore = 0\n-    let answers = await getAnswers()\n+    let answers = await getAnswers() // answers from db","path":"app/js/checkAnswers.js","position":13,"original_position":13,"commit_id":"2e200847f57566c5fb7163a84e52f63361f9b65e","original_commit_id":"2e200847f57566c5fb7163a84e52f63361f9b65e","user":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"body":"removed.","created_at":"2018-04-17T13:30:40Z","updated_at":"2018-04-17T13:30:40Z","html_url":"https://github.com/Mayden-Academy/aptitude-test/pull/49#discussion_r182072522","pull_request_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/comments/182072522"},"html":{"href":"https://github.com/Mayden-Academy/aptitude-test/pull/49#discussion_r182072522"},"pull_request":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49"}},"in_reply_to_id":182063287},"pull_request":{"url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49","id":182154181,"html_url":"https://github.com/Mayden-Academy/aptitude-test/pull/49","diff_url":"https://github.com/Mayden-Academy/aptitude-test/pull/49.diff","patch_url":"https://github.com/Mayden-Academy/aptitude-test/pull/49.patch","issue_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/49","number":49,"state":"open","locked":false,"title":"Story1 empty questions","user":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-17T12:47:30Z","updated_at":"2018-04-17T13:30:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa078fb886f5caf8378f77c823810d227a5defea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49/commits","review_comments_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49/comments","review_comment_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/49/comments","statuses_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/statuses/2e200847f57566c5fb7163a84e52f63361f9b65e","head":{"label":"Mayden-Academy:story1-emptyQuestions","ref":"story1-emptyQuestions","sha":"2e200847f57566c5fb7163a84e52f63361f9b65e","user":{"login":"Mayden-Academy","id":23072457,"avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":97826381,"name":"aptitude-test","full_name":"Mayden-Academy/aptitude-test","owner":{"login":"Mayden-Academy","id":23072457,"avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Mayden-Academy/aptitude-test","description":"Mayden Academy Aptitude test app","fork":false,"url":"https://api.github.com/repos/Mayden-Academy/aptitude-test","forks_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/forks","keys_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/teams","hooks_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/hooks","issue_events_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/events{/number}","events_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/events","assignees_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/assignees{/user}","branches_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/branches{/branch}","tags_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/tags","blobs_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/statuses/{sha}","languages_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/languages","stargazers_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/stargazers","contributors_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/contributors","subscribers_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/subscribers","subscription_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/subscription","commits_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/contents/{+path}","compare_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/merges","archive_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/downloads","issues_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues{/number}","pulls_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls{/number}","milestones_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/milestones{/number}","notifications_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/labels{/name}","releases_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/releases{/id}","deployments_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/deployments","created_at":"2017-07-20T11:14:20Z","updated_at":"2018-04-16T13:53:42Z","pushed_at":"2018-04-17T12:47:30Z","git_url":"git://github.com/Mayden-Academy/aptitude-test.git","ssh_url":"git@github.com:Mayden-Academy/aptitude-test.git","clone_url":"https://github.com/Mayden-Academy/aptitude-test.git","svn_url":"https://github.com/Mayden-Academy/aptitude-test","homepage":null,"size":13758,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Mayden-Academy:master","ref":"master","sha":"037abb900ab26444a4b2e57b9973af4e273aad90","user":{"login":"Mayden-Academy","id":23072457,"avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":97826381,"name":"aptitude-test","full_name":"Mayden-Academy/aptitude-test","owner":{"login":"Mayden-Academy","id":23072457,"avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Mayden-Academy/aptitude-test","description":"Mayden Academy Aptitude test app","fork":false,"url":"https://api.github.com/repos/Mayden-Academy/aptitude-test","forks_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/forks","keys_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/teams","hooks_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/hooks","issue_events_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/events{/number}","events_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/events","assignees_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/assignees{/user}","branches_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/branches{/branch}","tags_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/tags","blobs_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/statuses/{sha}","languages_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/languages","stargazers_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/stargazers","contributors_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/contributors","subscribers_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/subscribers","subscription_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/subscription","commits_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/contents/{+path}","compare_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/merges","archive_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/downloads","issues_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues{/number}","pulls_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls{/number}","milestones_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/milestones{/number}","notifications_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/labels{/name}","releases_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/releases{/id}","deployments_url":"https://api.github.com/repos/Mayden-Academy/aptitude-test/deployments","created_at":"2017-07-20T11:14:20Z","updated_at":"2018-04-16T13:53:42Z","pushed_at":"2018-04-17T12:47:30Z","git_url":"git://github.com/Mayden-Academy/aptitude-test.git","ssh_url":"git@github.com:Mayden-Academy/aptitude-test.git","clone_url":"https://github.com/Mayden-Academy/aptitude-test.git","svn_url":"https://github.com/Mayden-Academy/aptitude-test","homepage":null,"size":13758,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49"},"html":{"href":"https://github.com/Mayden-Academy/aptitude-test/pull/49"},"issue":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/49"},"comments":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/Mayden-Academy/aptitude-test/statuses/2e200847f57566c5fb7163a84e52f63361f9b65e"}},"author_association":"NONE"}}
{"actor":{"display_login":"Osama-Tahboub1"}}