{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2016/team2/pulls/comments/105858929","pull_request_review_id":26756110,"id":105858929,"diff_hunk":"@@ -25,16 +25,14 @@ exports.list = (req, res) => {\n };\n \n exports.get = (req, res) => {\n-    /* eslint no-unused-vars: 0 */\n-    /* const questId = req.params.questId;\n-    const quest = Quest.find(questId);\n-    const data = Object.assign({quest: quest}, res.locals);\n-\n-    if (quest) {\n-        res.render('quest', data);\n-    } else {\n-        res.sendStatus(404);\n-    } */\n+    Quest.findById(req.params.id)\n+        .then(quest => {\n+            if (quest) {\n+                res.render('../views/quests/get.hbs', {quest: quest});","path":"app/controllers/quests.js","position":17,"original_position":17,"commit_id":"4548e17cff23a39813efac6a68c2aaa040406125","original_commit_id":"4548e17cff23a39813efac6a68c2aaa040406125","user":{"login":"FoKycHuK","id":6791344,"avatar_url":"https://avatars0.githubusercontent.com/u/6791344?v=3","gravatar_id":"","url":"https://api.github.com/users/FoKycHuK","html_url":"https://github.com/FoKycHuK","followers_url":"https://api.github.com/users/FoKycHuK/followers","following_url":"https://api.github.com/users/FoKycHuK/following{/other_user}","gists_url":"https://api.github.com/users/FoKycHuK/gists{/gist_id}","starred_url":"https://api.github.com/users/FoKycHuK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FoKycHuK/subscriptions","organizations_url":"https://api.github.com/users/FoKycHuK/orgs","repos_url":"https://api.github.com/users/FoKycHuK/repos","events_url":"https://api.github.com/users/FoKycHuK/events{/privacy}","received_events_url":"https://api.github.com/users/FoKycHuK/received_events","type":"User","site_admin":false},"body":"со вьюхой все ок, я имею ввиду если в res.render передать не \"{quest: quest}\", а просто \"quest\", отрендерится?","created_at":"2017-03-14T09:25:40Z","updated_at":"2017-03-14T09:25:40Z","html_url":"https://github.com/urfu-2016/team2/pull/24#discussion_r105858929","pull_request_url":"https://api.github.com/repos/urfu-2016/team2/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/team2/pulls/comments/105858929"},"html":{"href":"https://github.com/urfu-2016/team2/pull/24#discussion_r105858929"},"pull_request":{"href":"https://api.github.com/repos/urfu-2016/team2/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2016/team2/pulls/24","id":110575129,"html_url":"https://github.com/urfu-2016/team2/pull/24","diff_url":"https://github.com/urfu-2016/team2/pull/24.diff","patch_url":"https://github.com/urfu-2016/team2/pull/24.patch","issue_url":"https://api.github.com/repos/urfu-2016/team2/issues/24","number":24,"state":"open","locked":false,"title":"Добавлена страница квеста","user":{"login":"SemyonMakhaev","id":18099714,"avatar_url":"https://avatars2.githubusercontent.com/u/18099714?v=3","gravatar_id":"","url":"https://api.github.com/users/SemyonMakhaev","html_url":"https://github.com/SemyonMakhaev","followers_url":"https://api.github.com/users/SemyonMakhaev/followers","following_url":"https://api.github.com/users/SemyonMakhaev/following{/other_user}","gists_url":"https://api.github.com/users/SemyonMakhaev/gists{/gist_id}","starred_url":"https://api.github.com/users/SemyonMakhaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemyonMakhaev/subscriptions","organizations_url":"https://api.github.com/users/SemyonMakhaev/orgs","repos_url":"https://api.github.com/users/SemyonMakhaev/repos","events_url":"https://api.github.com/users/SemyonMakhaev/events{/privacy}","received_events_url":"https://api.github.com/users/SemyonMakhaev/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-14T09:09:16Z","updated_at":"2017-03-14T09:25:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f5e07f059a63b780608f39f821da93bf257825b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2016/team2/pulls/24/commits","review_comments_url":"https://api.github.com/repos/urfu-2016/team2/pulls/24/comments","review_comment_url":"https://api.github.com/repos/urfu-2016/team2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2016/team2/issues/24/comments","statuses_url":"https://api.github.com/repos/urfu-2016/team2/statuses/4548e17cff23a39813efac6a68c2aaa040406125","head":{"label":"SemyonMakhaev:controllers-making","ref":"controllers-making","sha":"4548e17cff23a39813efac6a68c2aaa040406125","user":{"login":"SemyonMakhaev","id":18099714,"avatar_url":"https://avatars2.githubusercontent.com/u/18099714?v=3","gravatar_id":"","url":"https://api.github.com/users/SemyonMakhaev","html_url":"https://github.com/SemyonMakhaev","followers_url":"https://api.github.com/users/SemyonMakhaev/followers","following_url":"https://api.github.com/users/SemyonMakhaev/following{/other_user}","gists_url":"https://api.github.com/users/SemyonMakhaev/gists{/gist_id}","starred_url":"https://api.github.com/users/SemyonMakhaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemyonMakhaev/subscriptions","organizations_url":"https://api.github.com/users/SemyonMakhaev/orgs","repos_url":"https://api.github.com/users/SemyonMakhaev/repos","events_url":"https://api.github.com/users/SemyonMakhaev/events{/privacy}","received_events_url":"https://api.github.com/users/SemyonMakhaev/received_events","type":"User","site_admin":false},"repo":{"id":84705394,"name":"team2","full_name":"SemyonMakhaev/team2","owner":{"login":"SemyonMakhaev","id":18099714,"avatar_url":"https://avatars2.githubusercontent.com/u/18099714?v=3","gravatar_id":"","url":"https://api.github.com/users/SemyonMakhaev","html_url":"https://github.com/SemyonMakhaev","followers_url":"https://api.github.com/users/SemyonMakhaev/followers","following_url":"https://api.github.com/users/SemyonMakhaev/following{/other_user}","gists_url":"https://api.github.com/users/SemyonMakhaev/gists{/gist_id}","starred_url":"https://api.github.com/users/SemyonMakhaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemyonMakhaev/subscriptions","organizations_url":"https://api.github.com/users/SemyonMakhaev/orgs","repos_url":"https://api.github.com/users/SemyonMakhaev/repos","events_url":"https://api.github.com/users/SemyonMakhaev/events{/privacy}","received_events_url":"https://api.github.com/users/SemyonMakhaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SemyonMakhaev/team2","description":null,"fork":true,"url":"https://api.github.com/repos/SemyonMakhaev/team2","forks_url":"https://api.github.com/repos/SemyonMakhaev/team2/forks","keys_url":"https://api.github.com/repos/SemyonMakhaev/team2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SemyonMakhaev/team2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SemyonMakhaev/team2/teams","hooks_url":"https://api.github.com/repos/SemyonMakhaev/team2/hooks","issue_events_url":"https://api.github.com/repos/SemyonMakhaev/team2/issues/events{/number}","events_url":"https://api.github.com/repos/SemyonMakhaev/team2/events","assignees_url":"https://api.github.com/repos/SemyonMakhaev/team2/assignees{/user}","branches_url":"https://api.github.com/repos/SemyonMakhaev/team2/branches{/branch}","tags_url":"https://api.github.com/repos/SemyonMakhaev/team2/tags","blobs_url":"https://api.github.com/repos/SemyonMakhaev/team2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SemyonMakhaev/team2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SemyonMakhaev/team2/git/refs{/sha}","trees_url":"https://api.github.com/repos/SemyonMakhaev/team2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SemyonMakhaev/team2/statuses/{sha}","languages_url":"https://api.github.com/repos/SemyonMakhaev/team2/languages","stargazers_url":"https://api.github.com/repos/SemyonMakhaev/team2/stargazers","contributors_url":"https://api.github.com/repos/SemyonMakhaev/team2/contributors","subscribers_url":"https://api.github.com/repos/SemyonMakhaev/team2/subscribers","subscription_url":"https://api.github.com/repos/SemyonMakhaev/team2/subscription","commits_url":"https://api.github.com/repos/SemyonMakhaev/team2/commits{/sha}","git_commits_url":"https://api.github.com/repos/SemyonMakhaev/team2/git/commits{/sha}","comments_url":"https://api.github.com/repos/SemyonMakhaev/team2/comments{/number}","issue_comment_url":"https://api.github.com/repos/SemyonMakhaev/team2/issues/comments{/number}","contents_url":"https://api.github.com/repos/SemyonMakhaev/team2/contents/{+path}","compare_url":"https://api.github.com/repos/SemyonMakhaev/team2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SemyonMakhaev/team2/merges","archive_url":"https://api.github.com/repos/SemyonMakhaev/team2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SemyonMakhaev/team2/downloads","issues_url":"https://api.github.com/repos/SemyonMakhaev/team2/issues{/number}","pulls_url":"https://api.github.com/repos/SemyonMakhaev/team2/pulls{/number}","milestones_url":"https://api.github.com/repos/SemyonMakhaev/team2/milestones{/number}","notifications_url":"https://api.github.com/repos/SemyonMakhaev/team2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SemyonMakhaev/team2/labels{/name}","releases_url":"https://api.github.com/repos/SemyonMakhaev/team2/releases{/id}","deployments_url":"https://api.github.com/repos/SemyonMakhaev/team2/deployments","created_at":"2017-03-12T06:33:33Z","updated_at":"2017-03-12T09:09:32Z","pushed_at":"2017-03-14T09:08:13Z","git_url":"git://github.com/SemyonMakhaev/team2.git","ssh_url":"git@github.com:SemyonMakhaev/team2.git","clone_url":"https://github.com/SemyonMakhaev/team2.git","svn_url":"https://github.com/SemyonMakhaev/team2","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2016:master","ref":"master","sha":"1bed1b590d5041b957e8a3c482be466556e5b780","user":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars3.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":84701824,"name":"team2","full_name":"urfu-2016/team2","owner":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars3.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2016/team2","description":null,"fork":false,"url":"https://api.github.com/repos/urfu-2016/team2","forks_url":"https://api.github.com/repos/urfu-2016/team2/forks","keys_url":"https://api.github.com/repos/urfu-2016/team2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2016/team2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2016/team2/teams","hooks_url":"https://api.github.com/repos/urfu-2016/team2/hooks","issue_events_url":"https://api.github.com/repos/urfu-2016/team2/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2016/team2/events","assignees_url":"https://api.github.com/repos/urfu-2016/team2/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2016/team2/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2016/team2/tags","blobs_url":"https://api.github.com/repos/urfu-2016/team2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2016/team2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2016/team2/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2016/team2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2016/team2/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2016/team2/languages","stargazers_url":"https://api.github.com/repos/urfu-2016/team2/stargazers","contributors_url":"https://api.github.com/repos/urfu-2016/team2/contributors","subscribers_url":"https://api.github.com/repos/urfu-2016/team2/subscribers","subscription_url":"https://api.github.com/repos/urfu-2016/team2/subscription","commits_url":"https://api.github.com/repos/urfu-2016/team2/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2016/team2/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2016/team2/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2016/team2/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2016/team2/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2016/team2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2016/team2/merges","archive_url":"https://api.github.com/repos/urfu-2016/team2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2016/team2/downloads","issues_url":"https://api.github.com/repos/urfu-2016/team2/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2016/team2/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2016/team2/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2016/team2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2016/team2/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2016/team2/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2016/team2/deployments","created_at":"2017-03-12T05:16:12Z","updated_at":"2017-03-12T09:33:08Z","pushed_at":"2017-03-14T09:09:17Z","git_url":"git://github.com/urfu-2016/team2.git","ssh_url":"git@github.com:urfu-2016/team2.git","clone_url":"https://github.com/urfu-2016/team2.git","svn_url":"https://github.com/urfu-2016/team2","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/team2/pulls/24"},"html":{"href":"https://github.com/urfu-2016/team2/pull/24"},"issue":{"href":"https://api.github.com/repos/urfu-2016/team2/issues/24"},"comments":{"href":"https://api.github.com/repos/urfu-2016/team2/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2016/team2/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2016/team2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2016/team2/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2016/team2/statuses/4548e17cff23a39813efac6a68c2aaa040406125"}}}}
{"actor":{"display_login":"FoKycHuK"}}