{"action":"created","comment":{"url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/comments/205428681","pull_request_review_id":140694257,"id":205428681,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTQyODY4MQ==","diff_hunk":"@@ -239,5 +240,26 @@ export default class AuthController {\n   }\n \n \n+    /** A method for checking if user has already been registered:\n+      *  POST: api/v1/signup\n+      *  Takes 3 parameters\n+      *  @param {object} req the first parameter\n+      *  @param  {object} res the second parameter\n+      *  @param  {object} next the third parameter\n+      *  @returns {object} return an object\n+      */\n+     checksForAddEntryRequiredFields(req, res, next) {\n+\n+      if(!req.body.content){\n+        return res.status(400).send({\n+          message: 'Content field is required!'\n+      });  \n+      } else {\n+        next();","path":"server/middlewares/index.js","position":27,"original_position":27,"commit_id":"573dc7b03c282f3877dbf688c1a6734946f21bae","original_commit_id":"573dc7b03c282f3877dbf688c1a6734946f21bae","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected indentation of 6 spaces but found 8                                  indent","created_at":"2018-07-26T11:59:04Z","updated_at":"2018-07-26T11:59:05Z","html_url":"https://github.com/VictorUkafor/MyDiary/pull/30#discussion_r205428681","pull_request_url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/comments/205428681"},"html":{"href":"https://github.com/VictorUkafor/MyDiary/pull/30#discussion_r205428681"},"pull_request":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30","id":204118757,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MTE4NzU3","html_url":"https://github.com/VictorUkafor/MyDiary/pull/30","diff_url":"https://github.com/VictorUkafor/MyDiary/pull/30.diff","patch_url":"https://github.com/VictorUkafor/MyDiary/pull/30.patch","issue_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/30","number":30,"state":"closed","locked":false,"title":"023 server2 refactor post entry api endpoint to postgre sql","user":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-26T11:58:56Z","updated_at":"2018-07-26T11:59:06Z","closed_at":"2018-07-26T11:59:05Z","merged_at":"2018-07-26T11:59:05Z","merge_commit_sha":"e7811ec2c2d8ae7313ae14f3954725b959d5bc81","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30/commits","review_comments_url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30/comments","review_comment_url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/30/comments","statuses_url":"https://api.github.com/repos/VictorUkafor/MyDiary/statuses/573dc7b03c282f3877dbf688c1a6734946f21bae","head":{"label":"VictorUkafor:023-Server2-refactor-post-entry-API-endpoint-to-PostgreSQL","ref":"023-Server2-refactor-post-entry-API-endpoint-to-PostgreSQL","sha":"573dc7b03c282f3877dbf688c1a6734946f21bae","user":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"repo":{"id":140021626,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAwMjE2MjY=","name":"MyDiary","full_name":"VictorUkafor/MyDiary","owner":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VictorUkafor/MyDiary","description":"MyDiary is an online journal where users can pen down their thoughts and feelings","fork":false,"url":"https://api.github.com/repos/VictorUkafor/MyDiary","forks_url":"https://api.github.com/repos/VictorUkafor/MyDiary/forks","keys_url":"https://api.github.com/repos/VictorUkafor/MyDiary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VictorUkafor/MyDiary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VictorUkafor/MyDiary/teams","hooks_url":"https://api.github.com/repos/VictorUkafor/MyDiary/hooks","issue_events_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/events{/number}","events_url":"https://api.github.com/repos/VictorUkafor/MyDiary/events","assignees_url":"https://api.github.com/repos/VictorUkafor/MyDiary/assignees{/user}","branches_url":"https://api.github.com/repos/VictorUkafor/MyDiary/branches{/branch}","tags_url":"https://api.github.com/repos/VictorUkafor/MyDiary/tags","blobs_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/refs{/sha}","trees_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VictorUkafor/MyDiary/statuses/{sha}","languages_url":"https://api.github.com/repos/VictorUkafor/MyDiary/languages","stargazers_url":"https://api.github.com/repos/VictorUkafor/MyDiary/stargazers","contributors_url":"https://api.github.com/repos/VictorUkafor/MyDiary/contributors","subscribers_url":"https://api.github.com/repos/VictorUkafor/MyDiary/subscribers","subscription_url":"https://api.github.com/repos/VictorUkafor/MyDiary/subscription","commits_url":"https://api.github.com/repos/VictorUkafor/MyDiary/commits{/sha}","git_commits_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/commits{/sha}","comments_url":"https://api.github.com/repos/VictorUkafor/MyDiary/comments{/number}","issue_comment_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/comments{/number}","contents_url":"https://api.github.com/repos/VictorUkafor/MyDiary/contents/{+path}","compare_url":"https://api.github.com/repos/VictorUkafor/MyDiary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VictorUkafor/MyDiary/merges","archive_url":"https://api.github.com/repos/VictorUkafor/MyDiary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VictorUkafor/MyDiary/downloads","issues_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues{/number}","pulls_url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls{/number}","milestones_url":"https://api.github.com/repos/VictorUkafor/MyDiary/milestones{/number}","notifications_url":"https://api.github.com/repos/VictorUkafor/MyDiary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VictorUkafor/MyDiary/labels{/name}","releases_url":"https://api.github.com/repos/VictorUkafor/MyDiary/releases{/id}","deployments_url":"https://api.github.com/repos/VictorUkafor/MyDiary/deployments","created_at":"2018-07-06T19:13:02Z","updated_at":"2018-07-17T16:14:04Z","pushed_at":"2018-07-26T11:59:05Z","git_url":"git://github.com/VictorUkafor/MyDiary.git","ssh_url":"git@github.com:VictorUkafor/MyDiary.git","clone_url":"https://github.com/VictorUkafor/MyDiary.git","svn_url":"https://github.com/VictorUkafor/MyDiary","homepage":"https://victorukafor.github.io/MyDiary/UI/","size":610,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"VictorUkafor:develop","ref":"develop","sha":"19e9d946b06dbed06021d6ddd88d3dcf72fafe95","user":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"repo":{"id":140021626,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAwMjE2MjY=","name":"MyDiary","full_name":"VictorUkafor/MyDiary","owner":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VictorUkafor/MyDiary","description":"MyDiary is an online journal where users can pen down their thoughts and feelings","fork":false,"url":"https://api.github.com/repos/VictorUkafor/MyDiary","forks_url":"https://api.github.com/repos/VictorUkafor/MyDiary/forks","keys_url":"https://api.github.com/repos/VictorUkafor/MyDiary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VictorUkafor/MyDiary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VictorUkafor/MyDiary/teams","hooks_url":"https://api.github.com/repos/VictorUkafor/MyDiary/hooks","issue_events_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/events{/number}","events_url":"https://api.github.com/repos/VictorUkafor/MyDiary/events","assignees_url":"https://api.github.com/repos/VictorUkafor/MyDiary/assignees{/user}","branches_url":"https://api.github.com/repos/VictorUkafor/MyDiary/branches{/branch}","tags_url":"https://api.github.com/repos/VictorUkafor/MyDiary/tags","blobs_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/refs{/sha}","trees_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VictorUkafor/MyDiary/statuses/{sha}","languages_url":"https://api.github.com/repos/VictorUkafor/MyDiary/languages","stargazers_url":"https://api.github.com/repos/VictorUkafor/MyDiary/stargazers","contributors_url":"https://api.github.com/repos/VictorUkafor/MyDiary/contributors","subscribers_url":"https://api.github.com/repos/VictorUkafor/MyDiary/subscribers","subscription_url":"https://api.github.com/repos/VictorUkafor/MyDiary/subscription","commits_url":"https://api.github.com/repos/VictorUkafor/MyDiary/commits{/sha}","git_commits_url":"https://api.github.com/repos/VictorUkafor/MyDiary/git/commits{/sha}","comments_url":"https://api.github.com/repos/VictorUkafor/MyDiary/comments{/number}","issue_comment_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/comments{/number}","contents_url":"https://api.github.com/repos/VictorUkafor/MyDiary/contents/{+path}","compare_url":"https://api.github.com/repos/VictorUkafor/MyDiary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VictorUkafor/MyDiary/merges","archive_url":"https://api.github.com/repos/VictorUkafor/MyDiary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VictorUkafor/MyDiary/downloads","issues_url":"https://api.github.com/repos/VictorUkafor/MyDiary/issues{/number}","pulls_url":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls{/number}","milestones_url":"https://api.github.com/repos/VictorUkafor/MyDiary/milestones{/number}","notifications_url":"https://api.github.com/repos/VictorUkafor/MyDiary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VictorUkafor/MyDiary/labels{/name}","releases_url":"https://api.github.com/repos/VictorUkafor/MyDiary/releases{/id}","deployments_url":"https://api.github.com/repos/VictorUkafor/MyDiary/deployments","created_at":"2018-07-06T19:13:02Z","updated_at":"2018-07-17T16:14:04Z","pushed_at":"2018-07-26T11:59:05Z","git_url":"git://github.com/VictorUkafor/MyDiary.git","ssh_url":"git@github.com:VictorUkafor/MyDiary.git","clone_url":"https://github.com/VictorUkafor/MyDiary.git","svn_url":"https://github.com/VictorUkafor/MyDiary","homepage":"https://victorukafor.github.io/MyDiary/UI/","size":610,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30"},"html":{"href":"https://github.com/VictorUkafor/MyDiary/pull/30"},"issue":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/30"},"comments":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/VictorUkafor/MyDiary/statuses/573dc7b03c282f3877dbf688c1a6734946f21bae"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}