{"action":"created","comment":{"url":"https://api.github.com/repos/johanna08/Dish-d/pulls/comments/82055222","pull_request_review_id":2989514,"id":82055222,"diff_hunk":"@@ -10,6 +10,6 @@ const Ingredient = require('./models/ingredient-model.js');\n Ingredient.belongsToMany(Recipe, { through: 'recipes_ingredients', as: 'recipes' });\n Recipe.belongsToMany(Ingredient, { through: 'recipes_ingredients', as: 'ingredients' });\n \n-UserPref.hasOne(User);\n+UserPref.belongsTo(User);\t// UserPref has userId column","path":"server/db/index.js","position":5,"original_position":5,"commit_id":"80b12da18e7e33f8541764b997eb5696214bbb77","original_commit_id":"80b12da18e7e33f8541764b997eb5696214bbb77","user":{"login":"glebec","id":7230206,"avatar_url":"https://avatars.githubusercontent.com/u/7230206?v=3","gravatar_id":"","url":"https://api.github.com/users/glebec","html_url":"https://github.com/glebec","followers_url":"https://api.github.com/users/glebec/followers","following_url":"https://api.github.com/users/glebec/following{/other_user}","gists_url":"https://api.github.com/users/glebec/gists{/gist_id}","starred_url":"https://api.github.com/users/glebec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glebec/subscriptions","organizations_url":"https://api.github.com/users/glebec/orgs","repos_url":"https://api.github.com/users/glebec/repos","events_url":"https://api.github.com/users/glebec/events{/privacy}","received_events_url":"https://api.github.com/users/glebec/received_events","type":"User","site_admin":false},"body":"agreed","created_at":"2016-10-05T19:49:29Z","updated_at":"2016-10-05T19:49:29Z","html_url":"https://github.com/johanna08/Dish-d/pull/36#discussion_r82055222","pull_request_url":"https://api.github.com/repos/johanna08/Dish-d/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/johanna08/Dish-d/pulls/comments/82055222"},"html":{"href":"https://github.com/johanna08/Dish-d/pull/36#discussion_r82055222"},"pull_request":{"href":"https://api.github.com/repos/johanna08/Dish-d/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/johanna08/Dish-d/pulls/36","id":88125525,"html_url":"https://github.com/johanna08/Dish-d/pull/36","diff_url":"https://github.com/johanna08/Dish-d/pull/36.diff","patch_url":"https://github.com/johanna08/Dish-d/pull/36.patch","issue_url":"https://api.github.com/repos/johanna08/Dish-d/issues/36","number":36,"state":"closed","locked":false,"title":"user prefs routes: create new, get one, update one","user":{"login":"dyoungsmith","id":20169348,"avatar_url":"https://avatars.githubusercontent.com/u/20169348?v=3","gravatar_id":"","url":"https://api.github.com/users/dyoungsmith","html_url":"https://github.com/dyoungsmith","followers_url":"https://api.github.com/users/dyoungsmith/followers","following_url":"https://api.github.com/users/dyoungsmith/following{/other_user}","gists_url":"https://api.github.com/users/dyoungsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/dyoungsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dyoungsmith/subscriptions","organizations_url":"https://api.github.com/users/dyoungsmith/orgs","repos_url":"https://api.github.com/users/dyoungsmith/repos","events_url":"https://api.github.com/users/dyoungsmith/events{/privacy}","received_events_url":"https://api.github.com/users/dyoungsmith/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-05T17:53:01Z","updated_at":"2016-10-05T19:49:29Z","closed_at":"2016-10-05T17:55:12Z","merged_at":"2016-10-05T17:55:12Z","merge_commit_sha":"84a276894f3e1b56b1218fcc1b40c220f471ef90","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/johanna08/Dish-d/pulls/36/commits","review_comments_url":"https://api.github.com/repos/johanna08/Dish-d/pulls/36/comments","review_comment_url":"https://api.github.com/repos/johanna08/Dish-d/pulls/comments{/number}","comments_url":"https://api.github.com/repos/johanna08/Dish-d/issues/36/comments","statuses_url":"https://api.github.com/repos/johanna08/Dish-d/statuses/80b12da18e7e33f8541764b997eb5696214bbb77","head":{"label":"johanna08:prefs","ref":"prefs","sha":"80b12da18e7e33f8541764b997eb5696214bbb77","user":{"login":"johanna08","id":14915817,"avatar_url":"https://avatars.githubusercontent.com/u/14915817?v=3","gravatar_id":"","url":"https://api.github.com/users/johanna08","html_url":"https://github.com/johanna08","followers_url":"https://api.github.com/users/johanna08/followers","following_url":"https://api.github.com/users/johanna08/following{/other_user}","gists_url":"https://api.github.com/users/johanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/johanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanna08/subscriptions","organizations_url":"https://api.github.com/users/johanna08/orgs","repos_url":"https://api.github.com/users/johanna08/repos","events_url":"https://api.github.com/users/johanna08/events{/privacy}","received_events_url":"https://api.github.com/users/johanna08/received_events","type":"User","site_admin":false},"repo":{"id":69579605,"name":"Dish-d","full_name":"johanna08/Dish-d","owner":{"login":"johanna08","id":14915817,"avatar_url":"https://avatars.githubusercontent.com/u/14915817?v=3","gravatar_id":"","url":"https://api.github.com/users/johanna08","html_url":"https://github.com/johanna08","followers_url":"https://api.github.com/users/johanna08/followers","following_url":"https://api.github.com/users/johanna08/following{/other_user}","gists_url":"https://api.github.com/users/johanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/johanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanna08/subscriptions","organizations_url":"https://api.github.com/users/johanna08/orgs","repos_url":"https://api.github.com/users/johanna08/repos","events_url":"https://api.github.com/users/johanna08/events{/privacy}","received_events_url":"https://api.github.com/users/johanna08/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johanna08/Dish-d","description":null,"fork":false,"url":"https://api.github.com/repos/johanna08/Dish-d","forks_url":"https://api.github.com/repos/johanna08/Dish-d/forks","keys_url":"https://api.github.com/repos/johanna08/Dish-d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johanna08/Dish-d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johanna08/Dish-d/teams","hooks_url":"https://api.github.com/repos/johanna08/Dish-d/hooks","issue_events_url":"https://api.github.com/repos/johanna08/Dish-d/issues/events{/number}","events_url":"https://api.github.com/repos/johanna08/Dish-d/events","assignees_url":"https://api.github.com/repos/johanna08/Dish-d/assignees{/user}","branches_url":"https://api.github.com/repos/johanna08/Dish-d/branches{/branch}","tags_url":"https://api.github.com/repos/johanna08/Dish-d/tags","blobs_url":"https://api.github.com/repos/johanna08/Dish-d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johanna08/Dish-d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johanna08/Dish-d/git/refs{/sha}","trees_url":"https://api.github.com/repos/johanna08/Dish-d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johanna08/Dish-d/statuses/{sha}","languages_url":"https://api.github.com/repos/johanna08/Dish-d/languages","stargazers_url":"https://api.github.com/repos/johanna08/Dish-d/stargazers","contributors_url":"https://api.github.com/repos/johanna08/Dish-d/contributors","subscribers_url":"https://api.github.com/repos/johanna08/Dish-d/subscribers","subscription_url":"https://api.github.com/repos/johanna08/Dish-d/subscription","commits_url":"https://api.github.com/repos/johanna08/Dish-d/commits{/sha}","git_commits_url":"https://api.github.com/repos/johanna08/Dish-d/git/commits{/sha}","comments_url":"https://api.github.com/repos/johanna08/Dish-d/comments{/number}","issue_comment_url":"https://api.github.com/repos/johanna08/Dish-d/issues/comments{/number}","contents_url":"https://api.github.com/repos/johanna08/Dish-d/contents/{+path}","compare_url":"https://api.github.com/repos/johanna08/Dish-d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johanna08/Dish-d/merges","archive_url":"https://api.github.com/repos/johanna08/Dish-d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johanna08/Dish-d/downloads","issues_url":"https://api.github.com/repos/johanna08/Dish-d/issues{/number}","pulls_url":"https://api.github.com/repos/johanna08/Dish-d/pulls{/number}","milestones_url":"https://api.github.com/repos/johanna08/Dish-d/milestones{/number}","notifications_url":"https://api.github.com/repos/johanna08/Dish-d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johanna08/Dish-d/labels{/name}","releases_url":"https://api.github.com/repos/johanna08/Dish-d/releases{/id}","deployments_url":"https://api.github.com/repos/johanna08/Dish-d/deployments","created_at":"2016-09-29T15:12:57Z","updated_at":"2016-10-01T18:00:35Z","pushed_at":"2016-10-05T18:49:06Z","git_url":"git://github.com/johanna08/Dish-d.git","ssh_url":"git@github.com:johanna08/Dish-d.git","clone_url":"https://github.com/johanna08/Dish-d.git","svn_url":"https://github.com/johanna08/Dish-d","homepage":"http://www.dishd.us/","size":19036,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"johanna08:developer","ref":"developer","sha":"0495303939b0629e3e7044ce0551478c58194be4","user":{"login":"johanna08","id":14915817,"avatar_url":"https://avatars.githubusercontent.com/u/14915817?v=3","gravatar_id":"","url":"https://api.github.com/users/johanna08","html_url":"https://github.com/johanna08","followers_url":"https://api.github.com/users/johanna08/followers","following_url":"https://api.github.com/users/johanna08/following{/other_user}","gists_url":"https://api.github.com/users/johanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/johanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanna08/subscriptions","organizations_url":"https://api.github.com/users/johanna08/orgs","repos_url":"https://api.github.com/users/johanna08/repos","events_url":"https://api.github.com/users/johanna08/events{/privacy}","received_events_url":"https://api.github.com/users/johanna08/received_events","type":"User","site_admin":false},"repo":{"id":69579605,"name":"Dish-d","full_name":"johanna08/Dish-d","owner":{"login":"johanna08","id":14915817,"avatar_url":"https://avatars.githubusercontent.com/u/14915817?v=3","gravatar_id":"","url":"https://api.github.com/users/johanna08","html_url":"https://github.com/johanna08","followers_url":"https://api.github.com/users/johanna08/followers","following_url":"https://api.github.com/users/johanna08/following{/other_user}","gists_url":"https://api.github.com/users/johanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/johanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanna08/subscriptions","organizations_url":"https://api.github.com/users/johanna08/orgs","repos_url":"https://api.github.com/users/johanna08/repos","events_url":"https://api.github.com/users/johanna08/events{/privacy}","received_events_url":"https://api.github.com/users/johanna08/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johanna08/Dish-d","description":null,"fork":false,"url":"https://api.github.com/repos/johanna08/Dish-d","forks_url":"https://api.github.com/repos/johanna08/Dish-d/forks","keys_url":"https://api.github.com/repos/johanna08/Dish-d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johanna08/Dish-d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johanna08/Dish-d/teams","hooks_url":"https://api.github.com/repos/johanna08/Dish-d/hooks","issue_events_url":"https://api.github.com/repos/johanna08/Dish-d/issues/events{/number}","events_url":"https://api.github.com/repos/johanna08/Dish-d/events","assignees_url":"https://api.github.com/repos/johanna08/Dish-d/assignees{/user}","branches_url":"https://api.github.com/repos/johanna08/Dish-d/branches{/branch}","tags_url":"https://api.github.com/repos/johanna08/Dish-d/tags","blobs_url":"https://api.github.com/repos/johanna08/Dish-d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johanna08/Dish-d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johanna08/Dish-d/git/refs{/sha}","trees_url":"https://api.github.com/repos/johanna08/Dish-d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johanna08/Dish-d/statuses/{sha}","languages_url":"https://api.github.com/repos/johanna08/Dish-d/languages","stargazers_url":"https://api.github.com/repos/johanna08/Dish-d/stargazers","contributors_url":"https://api.github.com/repos/johanna08/Dish-d/contributors","subscribers_url":"https://api.github.com/repos/johanna08/Dish-d/subscribers","subscription_url":"https://api.github.com/repos/johanna08/Dish-d/subscription","commits_url":"https://api.github.com/repos/johanna08/Dish-d/commits{/sha}","git_commits_url":"https://api.github.com/repos/johanna08/Dish-d/git/commits{/sha}","comments_url":"https://api.github.com/repos/johanna08/Dish-d/comments{/number}","issue_comment_url":"https://api.github.com/repos/johanna08/Dish-d/issues/comments{/number}","contents_url":"https://api.github.com/repos/johanna08/Dish-d/contents/{+path}","compare_url":"https://api.github.com/repos/johanna08/Dish-d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johanna08/Dish-d/merges","archive_url":"https://api.github.com/repos/johanna08/Dish-d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johanna08/Dish-d/downloads","issues_url":"https://api.github.com/repos/johanna08/Dish-d/issues{/number}","pulls_url":"https://api.github.com/repos/johanna08/Dish-d/pulls{/number}","milestones_url":"https://api.github.com/repos/johanna08/Dish-d/milestones{/number}","notifications_url":"https://api.github.com/repos/johanna08/Dish-d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johanna08/Dish-d/labels{/name}","releases_url":"https://api.github.com/repos/johanna08/Dish-d/releases{/id}","deployments_url":"https://api.github.com/repos/johanna08/Dish-d/deployments","created_at":"2016-09-29T15:12:57Z","updated_at":"2016-10-01T18:00:35Z","pushed_at":"2016-10-05T18:49:06Z","git_url":"git://github.com/johanna08/Dish-d.git","ssh_url":"git@github.com:johanna08/Dish-d.git","clone_url":"https://github.com/johanna08/Dish-d.git","svn_url":"https://github.com/johanna08/Dish-d","homepage":"http://www.dishd.us/","size":19036,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/johanna08/Dish-d/pulls/36"},"html":{"href":"https://github.com/johanna08/Dish-d/pull/36"},"issue":{"href":"https://api.github.com/repos/johanna08/Dish-d/issues/36"},"comments":{"href":"https://api.github.com/repos/johanna08/Dish-d/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/johanna08/Dish-d/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/johanna08/Dish-d/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/johanna08/Dish-d/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/johanna08/Dish-d/statuses/80b12da18e7e33f8541764b997eb5696214bbb77"}}}}
{"actor":{"display_login":"glebec"}}