{"action":"created","comment":{"url":"https://api.github.com/repos/RandoApp/Rando/pulls/comments/88881249","pull_request_review_id":9439240,"id":88881249,"diff_hunk":"@@ -37,220 +38,192 @@ function buildPostImageResponse (rando) {\n };\n \n module.exports =  {\n-  saveImage: function (user, imagePath, location, callback) {\n-    logger.debug(\"[randoService.saveImage, \", user.email, \"] Try save image from: \", imagePath, \" for: \", user.email, \" location: \", location);\n+  saveImage (lightUser, imagePath, location, callback) {\n+    logger.debug(\"[randoService.saveImage, \", lightUser.email, \"] Try save image from: \", imagePath, \" for: \", lightUser.email, \" location: \", location);\n \n     async.waterfall([\n-      function (done) {\n+      function checkArgs (done) {\n         if (!imagePath || !location) {\n-          logger.warn(\"[randoService.saveImage, \", user.email, \"] Incorect args. user: \", user.email, \"; imagePath: \", imagePath, \"; location: \" , location);\n-          done(Errors.IncorrectArgs());\n-          return;\n+          logger.warn(\"[randoService.saveImage, \", lightUser.email, \"] Incorect args. user: \", lightUser.email, \"; imagePath: \", imagePath, \"; location: \" , location);\n+          return done(Errors.IncorrectArgs());","path":"src/service/randoService.js","position":27,"original_position":27,"commit_id":"1711096dbf7dd1f032f0f1b7f078112d7e143b8b","original_commit_id":"1711096dbf7dd1f032f0f1b7f078112d7e143b8b","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [A function with a name starting with an uppercase letter should only be used as a constructor. (new-cap)](https://www.codacy.com/app/RandoApp/Rando/file/4482119943/issues/source?bid=3392764&fileBranchId=3854915#l48)","created_at":"2016-11-21T12:06:53Z","updated_at":"2016-11-21T12:06:53Z","html_url":"https://github.com/RandoApp/Rando/pull/50#discussion_r88881249","pull_request_url":"https://api.github.com/repos/RandoApp/Rando/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/RandoApp/Rando/pulls/comments/88881249"},"html":{"href":"https://github.com/RandoApp/Rando/pull/50#discussion_r88881249"},"pull_request":{"href":"https://api.github.com/repos/RandoApp/Rando/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/RandoApp/Rando/pulls/50","id":91398415,"html_url":"https://github.com/RandoApp/Rando/pull/50","diff_url":"https://github.com/RandoApp/Rando/pull/50.diff","patch_url":"https://github.com/RandoApp/Rando/pull/50.patch","issue_url":"https://api.github.com/repos/RandoApp/Rando/issues/50","number":50,"state":"open","locked":false,"title":"Use light dao","user":{"login":"dimhold","id":977022,"avatar_url":"https://avatars.githubusercontent.com/u/977022?v=3","gravatar_id":"","url":"https://api.github.com/users/dimhold","html_url":"https://github.com/dimhold","followers_url":"https://api.github.com/users/dimhold/followers","following_url":"https://api.github.com/users/dimhold/following{/other_user}","gists_url":"https://api.github.com/users/dimhold/gists{/gist_id}","starred_url":"https://api.github.com/users/dimhold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimhold/subscriptions","organizations_url":"https://api.github.com/users/dimhold/orgs","repos_url":"https://api.github.com/users/dimhold/repos","events_url":"https://api.github.com/users/dimhold/events{/privacy}","received_events_url":"https://api.github.com/users/dimhold/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-28T15:07:28Z","updated_at":"2016-11-21T12:06:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af77b7eb04fbbf157263fca07fabfefca161054f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RandoApp/Rando/pulls/50/commits","review_comments_url":"https://api.github.com/repos/RandoApp/Rando/pulls/50/comments","review_comment_url":"https://api.github.com/repos/RandoApp/Rando/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RandoApp/Rando/issues/50/comments","statuses_url":"https://api.github.com/repos/RandoApp/Rando/statuses/1711096dbf7dd1f032f0f1b7f078112d7e143b8b","head":{"label":"RandoApp:use-light-dao","ref":"use-light-dao","sha":"1711096dbf7dd1f032f0f1b7f078112d7e143b8b","user":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"repo":{"id":12946779,"name":"Rando","full_name":"RandoApp/Rando","owner":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RandoApp/Rando","description":"Rando server. Give, receive and collect unique photos from random people from all over the world","fork":false,"url":"https://api.github.com/repos/RandoApp/Rando","forks_url":"https://api.github.com/repos/RandoApp/Rando/forks","keys_url":"https://api.github.com/repos/RandoApp/Rando/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RandoApp/Rando/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RandoApp/Rando/teams","hooks_url":"https://api.github.com/repos/RandoApp/Rando/hooks","issue_events_url":"https://api.github.com/repos/RandoApp/Rando/issues/events{/number}","events_url":"https://api.github.com/repos/RandoApp/Rando/events","assignees_url":"https://api.github.com/repos/RandoApp/Rando/assignees{/user}","branches_url":"https://api.github.com/repos/RandoApp/Rando/branches{/branch}","tags_url":"https://api.github.com/repos/RandoApp/Rando/tags","blobs_url":"https://api.github.com/repos/RandoApp/Rando/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RandoApp/Rando/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RandoApp/Rando/git/refs{/sha}","trees_url":"https://api.github.com/repos/RandoApp/Rando/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RandoApp/Rando/statuses/{sha}","languages_url":"https://api.github.com/repos/RandoApp/Rando/languages","stargazers_url":"https://api.github.com/repos/RandoApp/Rando/stargazers","contributors_url":"https://api.github.com/repos/RandoApp/Rando/contributors","subscribers_url":"https://api.github.com/repos/RandoApp/Rando/subscribers","subscription_url":"https://api.github.com/repos/RandoApp/Rando/subscription","commits_url":"https://api.github.com/repos/RandoApp/Rando/commits{/sha}","git_commits_url":"https://api.github.com/repos/RandoApp/Rando/git/commits{/sha}","comments_url":"https://api.github.com/repos/RandoApp/Rando/comments{/number}","issue_comment_url":"https://api.github.com/repos/RandoApp/Rando/issues/comments{/number}","contents_url":"https://api.github.com/repos/RandoApp/Rando/contents/{+path}","compare_url":"https://api.github.com/repos/RandoApp/Rando/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RandoApp/Rando/merges","archive_url":"https://api.github.com/repos/RandoApp/Rando/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RandoApp/Rando/downloads","issues_url":"https://api.github.com/repos/RandoApp/Rando/issues{/number}","pulls_url":"https://api.github.com/repos/RandoApp/Rando/pulls{/number}","milestones_url":"https://api.github.com/repos/RandoApp/Rando/milestones{/number}","notifications_url":"https://api.github.com/repos/RandoApp/Rando/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RandoApp/Rando/labels{/name}","releases_url":"https://api.github.com/repos/RandoApp/Rando/releases{/id}","deployments_url":"https://api.github.com/repos/RandoApp/Rando/deployments","created_at":"2013-09-19T11:18:46Z","updated_at":"2016-10-24T14:34:05Z","pushed_at":"2016-11-21T10:50:02Z","git_url":"git://github.com/RandoApp/Rando.git","ssh_url":"git@github.com:RandoApp/Rando.git","clone_url":"https://github.com/RandoApp/Rando.git","svn_url":"https://github.com/RandoApp/Rando","homepage":"https://rando4.me","size":2826,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"RandoApp:master","ref":"master","sha":"f799df43330600397f1f8af4a5391a8e29e34d59","user":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"repo":{"id":12946779,"name":"Rando","full_name":"RandoApp/Rando","owner":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RandoApp/Rando","description":"Rando server. Give, receive and collect unique photos from random people from all over the world","fork":false,"url":"https://api.github.com/repos/RandoApp/Rando","forks_url":"https://api.github.com/repos/RandoApp/Rando/forks","keys_url":"https://api.github.com/repos/RandoApp/Rando/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RandoApp/Rando/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RandoApp/Rando/teams","hooks_url":"https://api.github.com/repos/RandoApp/Rando/hooks","issue_events_url":"https://api.github.com/repos/RandoApp/Rando/issues/events{/number}","events_url":"https://api.github.com/repos/RandoApp/Rando/events","assignees_url":"https://api.github.com/repos/RandoApp/Rando/assignees{/user}","branches_url":"https://api.github.com/repos/RandoApp/Rando/branches{/branch}","tags_url":"https://api.github.com/repos/RandoApp/Rando/tags","blobs_url":"https://api.github.com/repos/RandoApp/Rando/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RandoApp/Rando/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RandoApp/Rando/git/refs{/sha}","trees_url":"https://api.github.com/repos/RandoApp/Rando/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RandoApp/Rando/statuses/{sha}","languages_url":"https://api.github.com/repos/RandoApp/Rando/languages","stargazers_url":"https://api.github.com/repos/RandoApp/Rando/stargazers","contributors_url":"https://api.github.com/repos/RandoApp/Rando/contributors","subscribers_url":"https://api.github.com/repos/RandoApp/Rando/subscribers","subscription_url":"https://api.github.com/repos/RandoApp/Rando/subscription","commits_url":"https://api.github.com/repos/RandoApp/Rando/commits{/sha}","git_commits_url":"https://api.github.com/repos/RandoApp/Rando/git/commits{/sha}","comments_url":"https://api.github.com/repos/RandoApp/Rando/comments{/number}","issue_comment_url":"https://api.github.com/repos/RandoApp/Rando/issues/comments{/number}","contents_url":"https://api.github.com/repos/RandoApp/Rando/contents/{+path}","compare_url":"https://api.github.com/repos/RandoApp/Rando/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RandoApp/Rando/merges","archive_url":"https://api.github.com/repos/RandoApp/Rando/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RandoApp/Rando/downloads","issues_url":"https://api.github.com/repos/RandoApp/Rando/issues{/number}","pulls_url":"https://api.github.com/repos/RandoApp/Rando/pulls{/number}","milestones_url":"https://api.github.com/repos/RandoApp/Rando/milestones{/number}","notifications_url":"https://api.github.com/repos/RandoApp/Rando/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RandoApp/Rando/labels{/name}","releases_url":"https://api.github.com/repos/RandoApp/Rando/releases{/id}","deployments_url":"https://api.github.com/repos/RandoApp/Rando/deployments","created_at":"2013-09-19T11:18:46Z","updated_at":"2016-10-24T14:34:05Z","pushed_at":"2016-11-21T10:50:02Z","git_url":"git://github.com/RandoApp/Rando.git","ssh_url":"git@github.com:RandoApp/Rando.git","clone_url":"https://github.com/RandoApp/Rando.git","svn_url":"https://github.com/RandoApp/Rando","homepage":"https://rando4.me","size":2826,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RandoApp/Rando/pulls/50"},"html":{"href":"https://github.com/RandoApp/Rando/pull/50"},"issue":{"href":"https://api.github.com/repos/RandoApp/Rando/issues/50"},"comments":{"href":"https://api.github.com/repos/RandoApp/Rando/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/RandoApp/Rando/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/RandoApp/Rando/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RandoApp/Rando/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/RandoApp/Rando/statuses/1711096dbf7dd1f032f0f1b7f078112d7e143b8b"}}}}
{"actor":{"display_login":"codacy-bot"}}