{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/50","id":87211043,"html_url":"https://github.com/preposterous-kumquat/preposterous-kumquat/pull/50","diff_url":"https://github.com/preposterous-kumquat/preposterous-kumquat/pull/50.diff","patch_url":"https://github.com/preposterous-kumquat/preposterous-kumquat/pull/50.patch","issue_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/issues/50","number":50,"state":"open","locked":false,"title":"Upload","user":{"login":"bkilrain","id":17045351,"avatar_url":"https://avatars.githubusercontent.com/u/17045351?v=3","gravatar_id":"","url":"https://api.github.com/users/bkilrain","html_url":"https://github.com/bkilrain","followers_url":"https://api.github.com/users/bkilrain/followers","following_url":"https://api.github.com/users/bkilrain/following{/other_user}","gists_url":"https://api.github.com/users/bkilrain/gists{/gist_id}","starred_url":"https://api.github.com/users/bkilrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkilrain/subscriptions","organizations_url":"https://api.github.com/users/bkilrain/orgs","repos_url":"https://api.github.com/users/bkilrain/repos","events_url":"https://api.github.com/users/bkilrain/events{/privacy}","received_events_url":"https://api.github.com/users/bkilrain/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\n\r\nAdds endpoint for uploading photo. After photo is uploaded, a new row for that photo is created and the photoID is sent, along with the photo, to the photo service. \r\n\r\n#### Where should the reviewer start?\r\n\r\nupload function in the helper.js file. \r\n\r\n#### How should this be manually tested?\r\n\r\nI suggest firing up local server and db... then make a post request with postman that includes a theme and a photo in the form data. Finally, go to http://requestb.in/1k8pwr51?inspect to see that your data made the trip.\r\n\r\n#### Any background context you want to provide?\r\n\r\nI was getting a strange error...\"TypeError: Cannot read property 'name' of null\"\r\n\r\nBut it went away. I cleaned up the code and made sure there isn't anything funny going on. I also made sure that all async business is happening in the correct order. I don't expect the error to return... but if it does, I suspect it is related with the multiparty and async.\r\n\r\n#### What are the relevant tickets?\r\n\r\n #36\r\n\r\n#### Screenshots (if appropriate)\r\n\r\n#### Questions:\r\n","created_at":"2016-09-28T22:07:16Z","updated_at":"2016-09-28T22:07:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/50/commits","review_comments_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/50/comments","review_comment_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/issues/50/comments","statuses_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/statuses/72649b9dbe63515fc2f0b8e1c727007d3ad36c7e","head":{"label":"bkilrain:upload","ref":"upload","sha":"72649b9dbe63515fc2f0b8e1c727007d3ad36c7e","user":{"login":"bkilrain","id":17045351,"avatar_url":"https://avatars.githubusercontent.com/u/17045351?v=3","gravatar_id":"","url":"https://api.github.com/users/bkilrain","html_url":"https://github.com/bkilrain","followers_url":"https://api.github.com/users/bkilrain/followers","following_url":"https://api.github.com/users/bkilrain/following{/other_user}","gists_url":"https://api.github.com/users/bkilrain/gists{/gist_id}","starred_url":"https://api.github.com/users/bkilrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkilrain/subscriptions","organizations_url":"https://api.github.com/users/bkilrain/orgs","repos_url":"https://api.github.com/users/bkilrain/repos","events_url":"https://api.github.com/users/bkilrain/events{/privacy}","received_events_url":"https://api.github.com/users/bkilrain/received_events","type":"User","site_admin":false},"repo":{"id":68848711,"name":"preposterous-kumquat","full_name":"bkilrain/preposterous-kumquat","owner":{"login":"bkilrain","id":17045351,"avatar_url":"https://avatars.githubusercontent.com/u/17045351?v=3","gravatar_id":"","url":"https://api.github.com/users/bkilrain","html_url":"https://github.com/bkilrain","followers_url":"https://api.github.com/users/bkilrain/followers","following_url":"https://api.github.com/users/bkilrain/following{/other_user}","gists_url":"https://api.github.com/users/bkilrain/gists{/gist_id}","starred_url":"https://api.github.com/users/bkilrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkilrain/subscriptions","organizations_url":"https://api.github.com/users/bkilrain/orgs","repos_url":"https://api.github.com/users/bkilrain/repos","events_url":"https://api.github.com/users/bkilrain/events{/privacy}","received_events_url":"https://api.github.com/users/bkilrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bkilrain/preposterous-kumquat","description":null,"fork":true,"url":"https://api.github.com/repos/bkilrain/preposterous-kumquat","forks_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/forks","keys_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/teams","hooks_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/hooks","issue_events_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/issues/events{/number}","events_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/events","assignees_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/assignees{/user}","branches_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/branches{/branch}","tags_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/tags","blobs_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/git/refs{/sha}","trees_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/statuses/{sha}","languages_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/languages","stargazers_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/stargazers","contributors_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/contributors","subscribers_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/subscribers","subscription_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/subscription","commits_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/commits{/sha}","git_commits_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/git/commits{/sha}","comments_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/comments{/number}","issue_comment_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/issues/comments{/number}","contents_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/contents/{+path}","compare_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/merges","archive_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/downloads","issues_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/issues{/number}","pulls_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/pulls{/number}","milestones_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/milestones{/number}","notifications_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/labels{/name}","releases_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/releases{/id}","deployments_url":"https://api.github.com/repos/bkilrain/preposterous-kumquat/deployments","created_at":"2016-09-21T19:01:57Z","updated_at":"2016-09-24T04:59:17Z","pushed_at":"2016-09-28T21:58:40Z","git_url":"git://github.com/bkilrain/preposterous-kumquat.git","ssh_url":"git@github.com:bkilrain/preposterous-kumquat.git","clone_url":"https://github.com/bkilrain/preposterous-kumquat.git","svn_url":"https://github.com/bkilrain/preposterous-kumquat","homepage":null,"size":677,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"preposterous-kumquat:master","ref":"master","sha":"70c15d2423426d768a7ac6d7bb660e415eedcc44","user":{"login":"preposterous-kumquat","id":22353741,"avatar_url":"https://avatars.githubusercontent.com/u/22353741?v=3","gravatar_id":"","url":"https://api.github.com/users/preposterous-kumquat","html_url":"https://github.com/preposterous-kumquat","followers_url":"https://api.github.com/users/preposterous-kumquat/followers","following_url":"https://api.github.com/users/preposterous-kumquat/following{/other_user}","gists_url":"https://api.github.com/users/preposterous-kumquat/gists{/gist_id}","starred_url":"https://api.github.com/users/preposterous-kumquat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preposterous-kumquat/subscriptions","organizations_url":"https://api.github.com/users/preposterous-kumquat/orgs","repos_url":"https://api.github.com/users/preposterous-kumquat/repos","events_url":"https://api.github.com/users/preposterous-kumquat/events{/privacy}","received_events_url":"https://api.github.com/users/preposterous-kumquat/received_events","type":"Organization","site_admin":false},"repo":{"id":68848527,"name":"preposterous-kumquat","full_name":"preposterous-kumquat/preposterous-kumquat","owner":{"login":"preposterous-kumquat","id":22353741,"avatar_url":"https://avatars.githubusercontent.com/u/22353741?v=3","gravatar_id":"","url":"https://api.github.com/users/preposterous-kumquat","html_url":"https://github.com/preposterous-kumquat","followers_url":"https://api.github.com/users/preposterous-kumquat/followers","following_url":"https://api.github.com/users/preposterous-kumquat/following{/other_user}","gists_url":"https://api.github.com/users/preposterous-kumquat/gists{/gist_id}","starred_url":"https://api.github.com/users/preposterous-kumquat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preposterous-kumquat/subscriptions","organizations_url":"https://api.github.com/users/preposterous-kumquat/orgs","repos_url":"https://api.github.com/users/preposterous-kumquat/repos","events_url":"https://api.github.com/users/preposterous-kumquat/events{/privacy}","received_events_url":"https://api.github.com/users/preposterous-kumquat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/preposterous-kumquat/preposterous-kumquat","description":null,"fork":false,"url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat","forks_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/forks","keys_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/teams","hooks_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/hooks","issue_events_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/issues/events{/number}","events_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/events","assignees_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/assignees{/user}","branches_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/branches{/branch}","tags_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/tags","blobs_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/git/refs{/sha}","trees_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/statuses/{sha}","languages_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/languages","stargazers_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/stargazers","contributors_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/contributors","subscribers_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/subscribers","subscription_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/subscription","commits_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/commits{/sha}","git_commits_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/git/commits{/sha}","comments_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/comments{/number}","issue_comment_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/issues/comments{/number}","contents_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/contents/{+path}","compare_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/merges","archive_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/downloads","issues_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/issues{/number}","pulls_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls{/number}","milestones_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/milestones{/number}","notifications_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/labels{/name}","releases_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/releases{/id}","deployments_url":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/deployments","created_at":"2016-09-21T18:59:28Z","updated_at":"2016-09-23T15:54:00Z","pushed_at":"2016-09-28T18:49:08Z","git_url":"git://github.com/preposterous-kumquat/preposterous-kumquat.git","ssh_url":"git@github.com:preposterous-kumquat/preposterous-kumquat.git","clone_url":"https://github.com/preposterous-kumquat/preposterous-kumquat.git","svn_url":"https://github.com/preposterous-kumquat/preposterous-kumquat","homepage":null,"size":674,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":25,"forks":3,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/50"},"html":{"href":"https://github.com/preposterous-kumquat/preposterous-kumquat/pull/50"},"issue":{"href":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/issues/50"},"comments":{"href":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/preposterous-kumquat/preposterous-kumquat/statuses/72649b9dbe63515fc2f0b8e1c727007d3ad36c7e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":78,"deletions":6,"changed_files":6}}
{"actor":{"display_login":"bkilrain"}}