{"action":"created","comment":{"url":"https://api.github.com/repos/MaratOM/gb_node/pulls/comments/165421427","pull_request_review_id":93358602,"id":165421427,"diff_hunk":"@@ -0,0 +1,41 @@\n+const mongoose = require('mongoose')\n+const Schema = mongoose.Schema\n+\n+mongoose.connect('mongodb://localhost/todos')\n+\n+const userSchema = new Schema({\n+  email: {\n+    type: String,\n+  },\n+  password: {\n+    type: String,\n+  },\n+  facebookId: {\n+    type: String,\n+  },\n+})\n+\n+userSchema.statics.findOrCreate = async function(service, userData) {","path":"lesson5/models/user.js","position":18,"original_position":18,"commit_id":"91540c47da66c7e9ae97fc4c2863fc84267ec5d0","original_commit_id":"91540c47da66c7e9ae97fc4c2863fc84267ec5d0","user":{"login":"MaratOM","id":720869,"avatar_url":"https://avatars3.githubusercontent.com/u/720869?v=4","gravatar_id":"","url":"https://api.github.com/users/MaratOM","html_url":"https://github.com/MaratOM","followers_url":"https://api.github.com/users/MaratOM/followers","following_url":"https://api.github.com/users/MaratOM/following{/other_user}","gists_url":"https://api.github.com/users/MaratOM/gists{/gist_id}","starred_url":"https://api.github.com/users/MaratOM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaratOM/subscriptions","organizations_url":"https://api.github.com/users/MaratOM/orgs","repos_url":"https://api.github.com/users/MaratOM/repos","events_url":"https://api.github.com/users/MaratOM/events{/privacy}","received_events_url":"https://api.github.com/users/MaratOM/received_events","type":"User","site_admin":false},"body":"Thanks, I will discover it.","created_at":"2018-02-01T17:01:49Z","updated_at":"2018-02-01T17:01:49Z","html_url":"https://github.com/MaratOM/gb_node/pull/6#discussion_r165421427","pull_request_url":"https://api.github.com/repos/MaratOM/gb_node/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/MaratOM/gb_node/pulls/comments/165421427"},"html":{"href":"https://github.com/MaratOM/gb_node/pull/6#discussion_r165421427"},"pull_request":{"href":"https://api.github.com/repos/MaratOM/gb_node/pulls/6"}},"in_reply_to_id":165391531},"pull_request":{"url":"https://api.github.com/repos/MaratOM/gb_node/pulls/6","id":166507582,"html_url":"https://github.com/MaratOM/gb_node/pull/6","diff_url":"https://github.com/MaratOM/gb_node/pull/6.diff","patch_url":"https://github.com/MaratOM/gb_node/pull/6.patch","issue_url":"https://api.github.com/repos/MaratOM/gb_node/issues/6","number":6,"state":"open","locked":false,"title":"Add passport local and facebook strategies authorization","user":{"login":"MaratOM","id":720869,"avatar_url":"https://avatars3.githubusercontent.com/u/720869?v=4","gravatar_id":"","url":"https://api.github.com/users/MaratOM","html_url":"https://github.com/MaratOM","followers_url":"https://api.github.com/users/MaratOM/followers","following_url":"https://api.github.com/users/MaratOM/following{/other_user}","gists_url":"https://api.github.com/users/MaratOM/gists{/gist_id}","starred_url":"https://api.github.com/users/MaratOM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaratOM/subscriptions","organizations_url":"https://api.github.com/users/MaratOM/orgs","repos_url":"https://api.github.com/users/MaratOM/repos","events_url":"https://api.github.com/users/MaratOM/events{/privacy}","received_events_url":"https://api.github.com/users/MaratOM/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-01T11:11:42Z","updated_at":"2018-02-01T17:01:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ce64cad9da0f664923ea480ed384e78ef3f8f72","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/MaratOM/gb_node/pulls/6/commits","review_comments_url":"https://api.github.com/repos/MaratOM/gb_node/pulls/6/comments","review_comment_url":"https://api.github.com/repos/MaratOM/gb_node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaratOM/gb_node/issues/6/comments","statuses_url":"https://api.github.com/repos/MaratOM/gb_node/statuses/91540c47da66c7e9ae97fc4c2863fc84267ec5d0","head":{"label":"MaratOM:lesson6","ref":"lesson6","sha":"91540c47da66c7e9ae97fc4c2863fc84267ec5d0","user":{"login":"MaratOM","id":720869,"avatar_url":"https://avatars3.githubusercontent.com/u/720869?v=4","gravatar_id":"","url":"https://api.github.com/users/MaratOM","html_url":"https://github.com/MaratOM","followers_url":"https://api.github.com/users/MaratOM/followers","following_url":"https://api.github.com/users/MaratOM/following{/other_user}","gists_url":"https://api.github.com/users/MaratOM/gists{/gist_id}","starred_url":"https://api.github.com/users/MaratOM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaratOM/subscriptions","organizations_url":"https://api.github.com/users/MaratOM/orgs","repos_url":"https://api.github.com/users/MaratOM/repos","events_url":"https://api.github.com/users/MaratOM/events{/privacy}","received_events_url":"https://api.github.com/users/MaratOM/received_events","type":"User","site_admin":false},"repo":{"id":117960562,"name":"gb_node","full_name":"MaratOM/gb_node","owner":{"login":"MaratOM","id":720869,"avatar_url":"https://avatars3.githubusercontent.com/u/720869?v=4","gravatar_id":"","url":"https://api.github.com/users/MaratOM","html_url":"https://github.com/MaratOM","followers_url":"https://api.github.com/users/MaratOM/followers","following_url":"https://api.github.com/users/MaratOM/following{/other_user}","gists_url":"https://api.github.com/users/MaratOM/gists{/gist_id}","starred_url":"https://api.github.com/users/MaratOM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaratOM/subscriptions","organizations_url":"https://api.github.com/users/MaratOM/orgs","repos_url":"https://api.github.com/users/MaratOM/repos","events_url":"https://api.github.com/users/MaratOM/events{/privacy}","received_events_url":"https://api.github.com/users/MaratOM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaratOM/gb_node","description":null,"fork":false,"url":"https://api.github.com/repos/MaratOM/gb_node","forks_url":"https://api.github.com/repos/MaratOM/gb_node/forks","keys_url":"https://api.github.com/repos/MaratOM/gb_node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaratOM/gb_node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaratOM/gb_node/teams","hooks_url":"https://api.github.com/repos/MaratOM/gb_node/hooks","issue_events_url":"https://api.github.com/repos/MaratOM/gb_node/issues/events{/number}","events_url":"https://api.github.com/repos/MaratOM/gb_node/events","assignees_url":"https://api.github.com/repos/MaratOM/gb_node/assignees{/user}","branches_url":"https://api.github.com/repos/MaratOM/gb_node/branches{/branch}","tags_url":"https://api.github.com/repos/MaratOM/gb_node/tags","blobs_url":"https://api.github.com/repos/MaratOM/gb_node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaratOM/gb_node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaratOM/gb_node/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaratOM/gb_node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaratOM/gb_node/statuses/{sha}","languages_url":"https://api.github.com/repos/MaratOM/gb_node/languages","stargazers_url":"https://api.github.com/repos/MaratOM/gb_node/stargazers","contributors_url":"https://api.github.com/repos/MaratOM/gb_node/contributors","subscribers_url":"https://api.github.com/repos/MaratOM/gb_node/subscribers","subscription_url":"https://api.github.com/repos/MaratOM/gb_node/subscription","commits_url":"https://api.github.com/repos/MaratOM/gb_node/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaratOM/gb_node/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaratOM/gb_node/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaratOM/gb_node/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaratOM/gb_node/contents/{+path}","compare_url":"https://api.github.com/repos/MaratOM/gb_node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaratOM/gb_node/merges","archive_url":"https://api.github.com/repos/MaratOM/gb_node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaratOM/gb_node/downloads","issues_url":"https://api.github.com/repos/MaratOM/gb_node/issues{/number}","pulls_url":"https://api.github.com/repos/MaratOM/gb_node/pulls{/number}","milestones_url":"https://api.github.com/repos/MaratOM/gb_node/milestones{/number}","notifications_url":"https://api.github.com/repos/MaratOM/gb_node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaratOM/gb_node/labels{/name}","releases_url":"https://api.github.com/repos/MaratOM/gb_node/releases{/id}","deployments_url":"https://api.github.com/repos/MaratOM/gb_node/deployments","created_at":"2018-01-18T09:21:20Z","updated_at":"2018-01-18T13:38:36Z","pushed_at":"2018-02-01T11:11:42Z","git_url":"git://github.com/MaratOM/gb_node.git","ssh_url":"git@github.com:MaratOM/gb_node.git","clone_url":"https://github.com/MaratOM/gb_node.git","svn_url":"https://github.com/MaratOM/gb_node","homepage":null,"size":62,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MaratOM:master","ref":"master","sha":"3cbfb3a2615d9d0dde963f96ce5fb729bc7bf4f4","user":{"login":"MaratOM","id":720869,"avatar_url":"https://avatars3.githubusercontent.com/u/720869?v=4","gravatar_id":"","url":"https://api.github.com/users/MaratOM","html_url":"https://github.com/MaratOM","followers_url":"https://api.github.com/users/MaratOM/followers","following_url":"https://api.github.com/users/MaratOM/following{/other_user}","gists_url":"https://api.github.com/users/MaratOM/gists{/gist_id}","starred_url":"https://api.github.com/users/MaratOM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaratOM/subscriptions","organizations_url":"https://api.github.com/users/MaratOM/orgs","repos_url":"https://api.github.com/users/MaratOM/repos","events_url":"https://api.github.com/users/MaratOM/events{/privacy}","received_events_url":"https://api.github.com/users/MaratOM/received_events","type":"User","site_admin":false},"repo":{"id":117960562,"name":"gb_node","full_name":"MaratOM/gb_node","owner":{"login":"MaratOM","id":720869,"avatar_url":"https://avatars3.githubusercontent.com/u/720869?v=4","gravatar_id":"","url":"https://api.github.com/users/MaratOM","html_url":"https://github.com/MaratOM","followers_url":"https://api.github.com/users/MaratOM/followers","following_url":"https://api.github.com/users/MaratOM/following{/other_user}","gists_url":"https://api.github.com/users/MaratOM/gists{/gist_id}","starred_url":"https://api.github.com/users/MaratOM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaratOM/subscriptions","organizations_url":"https://api.github.com/users/MaratOM/orgs","repos_url":"https://api.github.com/users/MaratOM/repos","events_url":"https://api.github.com/users/MaratOM/events{/privacy}","received_events_url":"https://api.github.com/users/MaratOM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaratOM/gb_node","description":null,"fork":false,"url":"https://api.github.com/repos/MaratOM/gb_node","forks_url":"https://api.github.com/repos/MaratOM/gb_node/forks","keys_url":"https://api.github.com/repos/MaratOM/gb_node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaratOM/gb_node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaratOM/gb_node/teams","hooks_url":"https://api.github.com/repos/MaratOM/gb_node/hooks","issue_events_url":"https://api.github.com/repos/MaratOM/gb_node/issues/events{/number}","events_url":"https://api.github.com/repos/MaratOM/gb_node/events","assignees_url":"https://api.github.com/repos/MaratOM/gb_node/assignees{/user}","branches_url":"https://api.github.com/repos/MaratOM/gb_node/branches{/branch}","tags_url":"https://api.github.com/repos/MaratOM/gb_node/tags","blobs_url":"https://api.github.com/repos/MaratOM/gb_node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaratOM/gb_node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaratOM/gb_node/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaratOM/gb_node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaratOM/gb_node/statuses/{sha}","languages_url":"https://api.github.com/repos/MaratOM/gb_node/languages","stargazers_url":"https://api.github.com/repos/MaratOM/gb_node/stargazers","contributors_url":"https://api.github.com/repos/MaratOM/gb_node/contributors","subscribers_url":"https://api.github.com/repos/MaratOM/gb_node/subscribers","subscription_url":"https://api.github.com/repos/MaratOM/gb_node/subscription","commits_url":"https://api.github.com/repos/MaratOM/gb_node/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaratOM/gb_node/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaratOM/gb_node/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaratOM/gb_node/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaratOM/gb_node/contents/{+path}","compare_url":"https://api.github.com/repos/MaratOM/gb_node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaratOM/gb_node/merges","archive_url":"https://api.github.com/repos/MaratOM/gb_node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaratOM/gb_node/downloads","issues_url":"https://api.github.com/repos/MaratOM/gb_node/issues{/number}","pulls_url":"https://api.github.com/repos/MaratOM/gb_node/pulls{/number}","milestones_url":"https://api.github.com/repos/MaratOM/gb_node/milestones{/number}","notifications_url":"https://api.github.com/repos/MaratOM/gb_node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaratOM/gb_node/labels{/name}","releases_url":"https://api.github.com/repos/MaratOM/gb_node/releases{/id}","deployments_url":"https://api.github.com/repos/MaratOM/gb_node/deployments","created_at":"2018-01-18T09:21:20Z","updated_at":"2018-01-18T13:38:36Z","pushed_at":"2018-02-01T11:11:42Z","git_url":"git://github.com/MaratOM/gb_node.git","ssh_url":"git@github.com:MaratOM/gb_node.git","clone_url":"https://github.com/MaratOM/gb_node.git","svn_url":"https://github.com/MaratOM/gb_node","homepage":null,"size":62,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MaratOM/gb_node/pulls/6"},"html":{"href":"https://github.com/MaratOM/gb_node/pull/6"},"issue":{"href":"https://api.github.com/repos/MaratOM/gb_node/issues/6"},"comments":{"href":"https://api.github.com/repos/MaratOM/gb_node/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/MaratOM/gb_node/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/MaratOM/gb_node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaratOM/gb_node/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/MaratOM/gb_node/statuses/91540c47da66c7e9ae97fc4c2863fc84267ec5d0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"MaratOM"}}