{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/comments/222420252","pull_request_review_id":161301375,"id":222420252,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjQyMDI1Mg==","diff_hunk":"@@ -45,5 +45,16 @@ module.exports = (sequelize, DataTypes) => {\n         }\n         throw errors.databaseError(err);\n       });\n+\n+  User.getUserByEmailAndPassword = email =>","path":"app/models/user.js","position":5,"original_position":5,"commit_id":"3200b80b9678bfebde511d673eac4fdea7bbcbe9","original_commit_id":"3200b80b9678bfebde511d673eac4fdea7bbcbe9","user":{"login":"mpicollo-wolox","id":36853148,"node_id":"MDQ6VXNlcjM2ODUzMTQ4","avatar_url":"https://avatars0.githubusercontent.com/u/36853148?v=4","gravatar_id":"","url":"https://api.github.com/users/mpicollo-wolox","html_url":"https://github.com/mpicollo-wolox","followers_url":"https://api.github.com/users/mpicollo-wolox/followers","following_url":"https://api.github.com/users/mpicollo-wolox/following{/other_user}","gists_url":"https://api.github.com/users/mpicollo-wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mpicollo-wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpicollo-wolox/subscriptions","organizations_url":"https://api.github.com/users/mpicollo-wolox/orgs","repos_url":"https://api.github.com/users/mpicollo-wolox/repos","events_url":"https://api.github.com/users/mpicollo-wolox/events{/privacy}","received_events_url":"https://api.github.com/users/mpicollo-wolox/received_events","type":"User","site_admin":false},"body":"`getUserByEmailAndPassword` weird name for function, you can do more generic like `getUserBy = condition => ....`","created_at":"2018-10-03T18:33:44Z","updated_at":"2018-10-03T18:51:21Z","html_url":"https://github.com/wolox-training/jl-express-js/pull/6#discussion_r222420252","pull_request_url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/comments/222420252"},"html":{"href":"https://github.com/wolox-training/jl-express-js/pull/6#discussion_r222420252"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6","id":220121191,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMTIxMTkx","html_url":"https://github.com/wolox-training/jl-express-js/pull/6","diff_url":"https://github.com/wolox-training/jl-express-js/pull/6.diff","patch_url":"https://github.com/wolox-training/jl-express-js/pull/6.patch","issue_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues/6","number":6,"state":"open","locked":false,"title":"User login","user":{"login":"jersonlopez","id":17531513,"node_id":"MDQ6VXNlcjE3NTMxNTEz","avatar_url":"https://avatars1.githubusercontent.com/u/17531513?v=4","gravatar_id":"","url":"https://api.github.com/users/jersonlopez","html_url":"https://github.com/jersonlopez","followers_url":"https://api.github.com/users/jersonlopez/followers","following_url":"https://api.github.com/users/jersonlopez/following{/other_user}","gists_url":"https://api.github.com/users/jersonlopez/gists{/gist_id}","starred_url":"https://api.github.com/users/jersonlopez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jersonlopez/subscriptions","organizations_url":"https://api.github.com/users/jersonlopez/orgs","repos_url":"https://api.github.com/users/jersonlopez/repos","events_url":"https://api.github.com/users/jersonlopez/events{/privacy}","received_events_url":"https://api.github.com/users/jersonlopez/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\nlogin an user and merge with HEAD\r\n\r\n## Trello Card\r\n\r\n[https://trello.com/c/NSGh1otZ/3-sign-in](https://trello.com/c/NSGh1otZ/3-sign-in)\r\n","created_at":"2018-10-03T17:38:31Z","updated_at":"2018-10-03T18:51:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e042f00eb808de9c77b797fbfc661e566dc8489","assignee":{"login":"mpicollo-wolox","id":36853148,"node_id":"MDQ6VXNlcjM2ODUzMTQ4","avatar_url":"https://avatars0.githubusercontent.com/u/36853148?v=4","gravatar_id":"","url":"https://api.github.com/users/mpicollo-wolox","html_url":"https://github.com/mpicollo-wolox","followers_url":"https://api.github.com/users/mpicollo-wolox/followers","following_url":"https://api.github.com/users/mpicollo-wolox/following{/other_user}","gists_url":"https://api.github.com/users/mpicollo-wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mpicollo-wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpicollo-wolox/subscriptions","organizations_url":"https://api.github.com/users/mpicollo-wolox/orgs","repos_url":"https://api.github.com/users/mpicollo-wolox/repos","events_url":"https://api.github.com/users/mpicollo-wolox/events{/privacy}","received_events_url":"https://api.github.com/users/mpicollo-wolox/received_events","type":"User","site_admin":false},"assignees":[{"login":"mpicollo-wolox","id":36853148,"node_id":"MDQ6VXNlcjM2ODUzMTQ4","avatar_url":"https://avatars0.githubusercontent.com/u/36853148?v=4","gravatar_id":"","url":"https://api.github.com/users/mpicollo-wolox","html_url":"https://github.com/mpicollo-wolox","followers_url":"https://api.github.com/users/mpicollo-wolox/followers","following_url":"https://api.github.com/users/mpicollo-wolox/following{/other_user}","gists_url":"https://api.github.com/users/mpicollo-wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mpicollo-wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpicollo-wolox/subscriptions","organizations_url":"https://api.github.com/users/mpicollo-wolox/orgs","repos_url":"https://api.github.com/users/mpicollo-wolox/repos","events_url":"https://api.github.com/users/mpicollo-wolox/events{/privacy}","received_events_url":"https://api.github.com/users/mpicollo-wolox/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6/commits","review_comments_url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6/comments","review_comment_url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues/6/comments","statuses_url":"https://api.github.com/repos/wolox-training/jl-express-js/statuses/3200b80b9678bfebde511d673eac4fdea7bbcbe9","head":{"label":"wolox-training:user_login","ref":"user_login","sha":"3200b80b9678bfebde511d673eac4fdea7bbcbe9","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":149127020,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxMjcwMjA=","name":"jl-express-js","full_name":"wolox-training/jl-express-js","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/jl-express-js","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/jl-express-js","forks_url":"https://api.github.com/repos/wolox-training/jl-express-js/forks","keys_url":"https://api.github.com/repos/wolox-training/jl-express-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/jl-express-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/jl-express-js/teams","hooks_url":"https://api.github.com/repos/wolox-training/jl-express-js/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/jl-express-js/events","assignees_url":"https://api.github.com/repos/wolox-training/jl-express-js/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/jl-express-js/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/jl-express-js/tags","blobs_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/jl-express-js/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/jl-express-js/languages","stargazers_url":"https://api.github.com/repos/wolox-training/jl-express-js/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/jl-express-js/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/jl-express-js/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/jl-express-js/subscription","commits_url":"https://api.github.com/repos/wolox-training/jl-express-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/jl-express-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/jl-express-js/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/jl-express-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/jl-express-js/merges","archive_url":"https://api.github.com/repos/wolox-training/jl-express-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/jl-express-js/downloads","issues_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/jl-express-js/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/jl-express-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/jl-express-js/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/jl-express-js/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/jl-express-js/deployments","created_at":"2018-09-17T13:10:18Z","updated_at":"2018-10-03T13:26:59Z","pushed_at":"2018-10-03T18:23:23Z","git_url":"git://github.com/wolox-training/jl-express-js.git","ssh_url":"git@github.com:wolox-training/jl-express-js.git","clone_url":"https://github.com/wolox-training/jl-express-js.git","svn_url":"https://github.com/wolox-training/jl-express-js","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"wolox-training:master","ref":"master","sha":"60b740a2eece1e7e1407d19c5ce8706385edc93e","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":149127020,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxMjcwMjA=","name":"jl-express-js","full_name":"wolox-training/jl-express-js","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/jl-express-js","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/jl-express-js","forks_url":"https://api.github.com/repos/wolox-training/jl-express-js/forks","keys_url":"https://api.github.com/repos/wolox-training/jl-express-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/jl-express-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/jl-express-js/teams","hooks_url":"https://api.github.com/repos/wolox-training/jl-express-js/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/jl-express-js/events","assignees_url":"https://api.github.com/repos/wolox-training/jl-express-js/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/jl-express-js/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/jl-express-js/tags","blobs_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/jl-express-js/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/jl-express-js/languages","stargazers_url":"https://api.github.com/repos/wolox-training/jl-express-js/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/jl-express-js/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/jl-express-js/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/jl-express-js/subscription","commits_url":"https://api.github.com/repos/wolox-training/jl-express-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/jl-express-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/jl-express-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/jl-express-js/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/jl-express-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/jl-express-js/merges","archive_url":"https://api.github.com/repos/wolox-training/jl-express-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/jl-express-js/downloads","issues_url":"https://api.github.com/repos/wolox-training/jl-express-js/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/jl-express-js/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/jl-express-js/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/jl-express-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/jl-express-js/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/jl-express-js/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/jl-express-js/deployments","created_at":"2018-09-17T13:10:18Z","updated_at":"2018-10-03T13:26:59Z","pushed_at":"2018-10-03T18:23:23Z","git_url":"git://github.com/wolox-training/jl-express-js.git","ssh_url":"git@github.com:wolox-training/jl-express-js.git","clone_url":"https://github.com/wolox-training/jl-express-js.git","svn_url":"https://github.com/wolox-training/jl-express-js","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6"},"html":{"href":"https://github.com/wolox-training/jl-express-js/pull/6"},"issue":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/issues/6"},"comments":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/jl-express-js/statuses/3200b80b9678bfebde511d673eac4fdea7bbcbe9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mpicollo-wolox"}}