{"action":"created","comment":{"url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/comments/213167178","pull_request_review_id":149945461,"id":213167178,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzE2NzE3OA==","diff_hunk":"@@ -24,6 +25,44 @@ function mongoIdValidator (getOrPost, fieldname, optional = true) {\n     }\n }\n \n+function mongoIdArrayValidator (getOrPost, fieldname, optional = true) {\n+    var arr;\n+\n+    if (getOrPost === \"get\") {\n+        arr = query(fieldname, \"invalid mongoID\");","path":"middlewares/validators/validator.helper.js","position":16,"original_position":16,"commit_id":"2ff4eb555469517ffe3b638718bbdbed4ee79bc4","original_commit_id":"2ff4eb555469517ffe3b638718bbdbed4ee79bc4","user":{"login":"YiFeiZhang2","id":14948123,"node_id":"MDQ6VXNlcjE0OTQ4MTIz","avatar_url":"https://avatars1.githubusercontent.com/u/14948123?v=4","gravatar_id":"","url":"https://api.github.com/users/YiFeiZhang2","html_url":"https://github.com/YiFeiZhang2","followers_url":"https://api.github.com/users/YiFeiZhang2/followers","following_url":"https://api.github.com/users/YiFeiZhang2/following{/other_user}","gists_url":"https://api.github.com/users/YiFeiZhang2/gists{/gist_id}","starred_url":"https://api.github.com/users/YiFeiZhang2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YiFeiZhang2/subscriptions","organizations_url":"https://api.github.com/users/YiFeiZhang2/orgs","repos_url":"https://api.github.com/users/YiFeiZhang2/repos","events_url":"https://api.github.com/users/YiFeiZhang2/events{/privacy}","received_events_url":"https://api.github.com/users/YiFeiZhang2/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-08-28T02:14:13Z","updated_at":"2018-08-28T02:14:13Z","html_url":"https://github.com/hackmcgill/hackerAPI/pull/51#discussion_r213167178","pull_request_url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/comments/213167178"},"html":{"href":"https://github.com/hackmcgill/hackerAPI/pull/51#discussion_r213167178"},"pull_request":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51"}},"in_reply_to_id":213013687},"pull_request":{"url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51","id":211052542,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMDUyNTQy","html_url":"https://github.com/hackmcgill/hackerAPI/pull/51","diff_url":"https://github.com/hackmcgill/hackerAPI/pull/51.diff","patch_url":"https://github.com/hackmcgill/hackerAPI/pull/51.patch","issue_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/51","number":51,"state":"open","locked":false,"title":"Feature/sponsorroute","user":{"login":"YiFeiZhang2","id":14948123,"node_id":"MDQ6VXNlcjE0OTQ4MTIz","avatar_url":"https://avatars1.githubusercontent.com/u/14948123?v=4","gravatar_id":"","url":"https://api.github.com/users/YiFeiZhang2","html_url":"https://github.com/YiFeiZhang2","followers_url":"https://api.github.com/users/YiFeiZhang2/followers","following_url":"https://api.github.com/users/YiFeiZhang2/following{/other_user}","gists_url":"https://api.github.com/users/YiFeiZhang2/gists{/gist_id}","starred_url":"https://api.github.com/users/YiFeiZhang2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YiFeiZhang2/subscriptions","organizations_url":"https://api.github.com/users/YiFeiZhang2/orgs","repos_url":"https://api.github.com/users/YiFeiZhang2/repos","events_url":"https://api.github.com/users/YiFeiZhang2/events{/privacy}","received_events_url":"https://api.github.com/users/YiFeiZhang2/received_events","type":"User","site_admin":false},"body":"Create sponsor route with read and create features. \r\nChange route names to align with one standard where the Http verb will describe the action.\r\n\r\n- GET retrieves\r\n- POST creates\r\n- PATCH updates\r\n\r\nEx: /account/ POST will create a new account.\r\n\r\nChanged some function names to be more consistent with each other","created_at":"2018-08-27T09:20:48Z","updated_at":"2018-08-28T02:14:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bd92fed91307eec42978f58956c4695ddefb39a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pavelkondratyev","id":1170754,"node_id":"MDQ6VXNlcjExNzA3NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1170754?v=4","gravatar_id":"","url":"https://api.github.com/users/pavelkondratyev","html_url":"https://github.com/pavelkondratyev","followers_url":"https://api.github.com/users/pavelkondratyev/followers","following_url":"https://api.github.com/users/pavelkondratyev/following{/other_user}","gists_url":"https://api.github.com/users/pavelkondratyev/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelkondratyev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelkondratyev/subscriptions","organizations_url":"https://api.github.com/users/pavelkondratyev/orgs","repos_url":"https://api.github.com/users/pavelkondratyev/repos","events_url":"https://api.github.com/users/pavelkondratyev/events{/privacy}","received_events_url":"https://api.github.com/users/pavelkondratyev/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51/commits","review_comments_url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51/comments","review_comment_url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/51/comments","statuses_url":"https://api.github.com/repos/hackmcgill/hackerAPI/statuses/2ff4eb555469517ffe3b638718bbdbed4ee79bc4","head":{"label":"hackmcgill:feature/sponsorroute","ref":"feature/sponsorroute","sha":"2ff4eb555469517ffe3b638718bbdbed4ee79bc4","user":{"login":"hackmcgill","id":5233351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyMzMzNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/5233351?v=4","gravatar_id":"","url":"https://api.github.com/users/hackmcgill","html_url":"https://github.com/hackmcgill","followers_url":"https://api.github.com/users/hackmcgill/followers","following_url":"https://api.github.com/users/hackmcgill/following{/other_user}","gists_url":"https://api.github.com/users/hackmcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/hackmcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackmcgill/subscriptions","organizations_url":"https://api.github.com/users/hackmcgill/orgs","repos_url":"https://api.github.com/users/hackmcgill/repos","events_url":"https://api.github.com/users/hackmcgill/events{/privacy}","received_events_url":"https://api.github.com/users/hackmcgill/received_events","type":"Organization","site_admin":false},"repo":{"id":129127874,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkxMjc4NzQ=","name":"hackerAPI","full_name":"hackmcgill/hackerAPI","owner":{"login":"hackmcgill","id":5233351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyMzMzNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/5233351?v=4","gravatar_id":"","url":"https://api.github.com/users/hackmcgill","html_url":"https://github.com/hackmcgill","followers_url":"https://api.github.com/users/hackmcgill/followers","following_url":"https://api.github.com/users/hackmcgill/following{/other_user}","gists_url":"https://api.github.com/users/hackmcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/hackmcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackmcgill/subscriptions","organizations_url":"https://api.github.com/users/hackmcgill/orgs","repos_url":"https://api.github.com/users/hackmcgill/repos","events_url":"https://api.github.com/users/hackmcgill/events{/privacy}","received_events_url":"https://api.github.com/users/hackmcgill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hackmcgill/hackerAPI","description":"API for registration, live-site","fork":false,"url":"https://api.github.com/repos/hackmcgill/hackerAPI","forks_url":"https://api.github.com/repos/hackmcgill/hackerAPI/forks","keys_url":"https://api.github.com/repos/hackmcgill/hackerAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hackmcgill/hackerAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hackmcgill/hackerAPI/teams","hooks_url":"https://api.github.com/repos/hackmcgill/hackerAPI/hooks","issue_events_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/events{/number}","events_url":"https://api.github.com/repos/hackmcgill/hackerAPI/events","assignees_url":"https://api.github.com/repos/hackmcgill/hackerAPI/assignees{/user}","branches_url":"https://api.github.com/repos/hackmcgill/hackerAPI/branches{/branch}","tags_url":"https://api.github.com/repos/hackmcgill/hackerAPI/tags","blobs_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hackmcgill/hackerAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/hackmcgill/hackerAPI/languages","stargazers_url":"https://api.github.com/repos/hackmcgill/hackerAPI/stargazers","contributors_url":"https://api.github.com/repos/hackmcgill/hackerAPI/contributors","subscribers_url":"https://api.github.com/repos/hackmcgill/hackerAPI/subscribers","subscription_url":"https://api.github.com/repos/hackmcgill/hackerAPI/subscription","commits_url":"https://api.github.com/repos/hackmcgill/hackerAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/hackmcgill/hackerAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/hackmcgill/hackerAPI/contents/{+path}","compare_url":"https://api.github.com/repos/hackmcgill/hackerAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hackmcgill/hackerAPI/merges","archive_url":"https://api.github.com/repos/hackmcgill/hackerAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hackmcgill/hackerAPI/downloads","issues_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues{/number}","pulls_url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/hackmcgill/hackerAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/hackmcgill/hackerAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hackmcgill/hackerAPI/labels{/name}","releases_url":"https://api.github.com/repos/hackmcgill/hackerAPI/releases{/id}","deployments_url":"https://api.github.com/repos/hackmcgill/hackerAPI/deployments","created_at":"2018-04-11T17:09:58Z","updated_at":"2018-08-24T02:21:21Z","pushed_at":"2018-08-27T09:20:48Z","git_url":"git://github.com/hackmcgill/hackerAPI.git","ssh_url":"git@github.com:hackmcgill/hackerAPI.git","clone_url":"https://github.com/hackmcgill/hackerAPI.git","svn_url":"https://github.com/hackmcgill/hackerAPI","homepage":null,"size":856,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":37,"license":null,"forks":0,"open_issues":37,"watchers":3,"default_branch":"master"}},"base":{"label":"hackmcgill:develop","ref":"develop","sha":"c113b609882e213d53a737c74df8dd4bf59a282b","user":{"login":"hackmcgill","id":5233351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyMzMzNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/5233351?v=4","gravatar_id":"","url":"https://api.github.com/users/hackmcgill","html_url":"https://github.com/hackmcgill","followers_url":"https://api.github.com/users/hackmcgill/followers","following_url":"https://api.github.com/users/hackmcgill/following{/other_user}","gists_url":"https://api.github.com/users/hackmcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/hackmcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackmcgill/subscriptions","organizations_url":"https://api.github.com/users/hackmcgill/orgs","repos_url":"https://api.github.com/users/hackmcgill/repos","events_url":"https://api.github.com/users/hackmcgill/events{/privacy}","received_events_url":"https://api.github.com/users/hackmcgill/received_events","type":"Organization","site_admin":false},"repo":{"id":129127874,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkxMjc4NzQ=","name":"hackerAPI","full_name":"hackmcgill/hackerAPI","owner":{"login":"hackmcgill","id":5233351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyMzMzNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/5233351?v=4","gravatar_id":"","url":"https://api.github.com/users/hackmcgill","html_url":"https://github.com/hackmcgill","followers_url":"https://api.github.com/users/hackmcgill/followers","following_url":"https://api.github.com/users/hackmcgill/following{/other_user}","gists_url":"https://api.github.com/users/hackmcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/hackmcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackmcgill/subscriptions","organizations_url":"https://api.github.com/users/hackmcgill/orgs","repos_url":"https://api.github.com/users/hackmcgill/repos","events_url":"https://api.github.com/users/hackmcgill/events{/privacy}","received_events_url":"https://api.github.com/users/hackmcgill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hackmcgill/hackerAPI","description":"API for registration, live-site","fork":false,"url":"https://api.github.com/repos/hackmcgill/hackerAPI","forks_url":"https://api.github.com/repos/hackmcgill/hackerAPI/forks","keys_url":"https://api.github.com/repos/hackmcgill/hackerAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hackmcgill/hackerAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hackmcgill/hackerAPI/teams","hooks_url":"https://api.github.com/repos/hackmcgill/hackerAPI/hooks","issue_events_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/events{/number}","events_url":"https://api.github.com/repos/hackmcgill/hackerAPI/events","assignees_url":"https://api.github.com/repos/hackmcgill/hackerAPI/assignees{/user}","branches_url":"https://api.github.com/repos/hackmcgill/hackerAPI/branches{/branch}","tags_url":"https://api.github.com/repos/hackmcgill/hackerAPI/tags","blobs_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hackmcgill/hackerAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/hackmcgill/hackerAPI/languages","stargazers_url":"https://api.github.com/repos/hackmcgill/hackerAPI/stargazers","contributors_url":"https://api.github.com/repos/hackmcgill/hackerAPI/contributors","subscribers_url":"https://api.github.com/repos/hackmcgill/hackerAPI/subscribers","subscription_url":"https://api.github.com/repos/hackmcgill/hackerAPI/subscription","commits_url":"https://api.github.com/repos/hackmcgill/hackerAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/hackmcgill/hackerAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/hackmcgill/hackerAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/hackmcgill/hackerAPI/contents/{+path}","compare_url":"https://api.github.com/repos/hackmcgill/hackerAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hackmcgill/hackerAPI/merges","archive_url":"https://api.github.com/repos/hackmcgill/hackerAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hackmcgill/hackerAPI/downloads","issues_url":"https://api.github.com/repos/hackmcgill/hackerAPI/issues{/number}","pulls_url":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/hackmcgill/hackerAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/hackmcgill/hackerAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hackmcgill/hackerAPI/labels{/name}","releases_url":"https://api.github.com/repos/hackmcgill/hackerAPI/releases{/id}","deployments_url":"https://api.github.com/repos/hackmcgill/hackerAPI/deployments","created_at":"2018-04-11T17:09:58Z","updated_at":"2018-08-24T02:21:21Z","pushed_at":"2018-08-27T09:20:48Z","git_url":"git://github.com/hackmcgill/hackerAPI.git","ssh_url":"git@github.com:hackmcgill/hackerAPI.git","clone_url":"https://github.com/hackmcgill/hackerAPI.git","svn_url":"https://github.com/hackmcgill/hackerAPI","homepage":null,"size":856,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":37,"license":null,"forks":0,"open_issues":37,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51"},"html":{"href":"https://github.com/hackmcgill/hackerAPI/pull/51"},"issue":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/51"},"comments":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/hackmcgill/hackerAPI/statuses/2ff4eb555469517ffe3b638718bbdbed4ee79bc4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"YiFeiZhang2"}}