{"action":"created","comment":{"url":"https://api.github.com/repos/reactivepixel/appStore/pulls/comments/59963643","id":59963643,"diff_hunk":"@@ -0,0 +1,62 @@\n+module.exports = function() {\n+  var db = require('./db.js');\n+  var sequelize = db.connection;\n+  var util = require('../../lib/util');\n+\n+// Create\n+  function _create(payload, err, success) {\n+    var cleanData = util.scrubData(payload);\n+    db.histories.create(cleanData).then(success).catch(err);\n+  }\n+// Update","path":"src/models/histories.js","position":11,"original_position":11,"commit_id":"f4ade7432bd7434d85e7ecc7243220424700b49a","original_commit_id":"f4ade7432bd7434d85e7ecc7243220424700b49a","user":{"login":"reactivepixel","id":430063,"avatar_url":"https://avatars.githubusercontent.com/u/430063?v=3","gravatar_id":"","url":"https://api.github.com/users/reactivepixel","html_url":"https://github.com/reactivepixel","followers_url":"https://api.github.com/users/reactivepixel/followers","following_url":"https://api.github.com/users/reactivepixel/following{/other_user}","gists_url":"https://api.github.com/users/reactivepixel/gists{/gist_id}","starred_url":"https://api.github.com/users/reactivepixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactivepixel/subscriptions","organizations_url":"https://api.github.com/users/reactivepixel/orgs","repos_url":"https://api.github.com/users/reactivepixel/repos","events_url":"https://api.github.com/users/reactivepixel/events{/privacy}","received_events_url":"https://api.github.com/users/reactivepixel/received_events","type":"User","site_admin":false},"body":"Does not match Comment Formatting in the airbnb style guide. Also, all comments on this file are inconsistent. ","created_at":"2016-04-16T06:51:49Z","updated_at":"2016-04-16T06:51:49Z","html_url":"https://github.com/reactivepixel/appStore/pull/2#discussion_r59963643","pull_request_url":"https://api.github.com/repos/reactivepixel/appStore/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/reactivepixel/appStore/pulls/comments/59963643"},"html":{"href":"https://github.com/reactivepixel/appStore/pull/2#discussion_r59963643"},"pull_request":{"href":"https://api.github.com/repos/reactivepixel/appStore/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/reactivepixel/appStore/pulls/2","id":66080233,"html_url":"https://github.com/reactivepixel/appStore/pull/2","diff_url":"https://github.com/reactivepixel/appStore/pull/2.diff","patch_url":"https://github.com/reactivepixel/appStore/pull/2.patch","issue_url":"https://api.github.com/repos/reactivepixel/appStore/issues/2","number":2,"state":"open","locked":false,"title":"Day 1 Release","user":{"login":"reactivepixel","id":430063,"avatar_url":"https://avatars.githubusercontent.com/u/430063?v=3","gravatar_id":"","url":"https://api.github.com/users/reactivepixel","html_url":"https://github.com/reactivepixel","followers_url":"https://api.github.com/users/reactivepixel/followers","following_url":"https://api.github.com/users/reactivepixel/following{/other_user}","gists_url":"https://api.github.com/users/reactivepixel/gists{/gist_id}","starred_url":"https://api.github.com/users/reactivepixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactivepixel/subscriptions","organizations_url":"https://api.github.com/users/reactivepixel/orgs","repos_url":"https://api.github.com/users/reactivepixel/repos","events_url":"https://api.github.com/users/reactivepixel/events{/privacy}","received_events_url":"https://api.github.com/users/reactivepixel/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-11T23:40:41Z","updated_at":"2016-04-16T06:51:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"531f9d0dd52e32dcfa7ac4c0382fc82c46df0d2e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reactivepixel/appStore/pulls/2/commits","review_comments_url":"https://api.github.com/repos/reactivepixel/appStore/pulls/2/comments","review_comment_url":"https://api.github.com/repos/reactivepixel/appStore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reactivepixel/appStore/issues/2/comments","statuses_url":"https://api.github.com/repos/reactivepixel/appStore/statuses/f4ade7432bd7434d85e7ecc7243220424700b49a","head":{"label":"reactivepixel:master","ref":"master","sha":"f4ade7432bd7434d85e7ecc7243220424700b49a","user":{"login":"reactivepixel","id":430063,"avatar_url":"https://avatars.githubusercontent.com/u/430063?v=3","gravatar_id":"","url":"https://api.github.com/users/reactivepixel","html_url":"https://github.com/reactivepixel","followers_url":"https://api.github.com/users/reactivepixel/followers","following_url":"https://api.github.com/users/reactivepixel/following{/other_user}","gists_url":"https://api.github.com/users/reactivepixel/gists{/gist_id}","starred_url":"https://api.github.com/users/reactivepixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactivepixel/subscriptions","organizations_url":"https://api.github.com/users/reactivepixel/orgs","repos_url":"https://api.github.com/users/reactivepixel/repos","events_url":"https://api.github.com/users/reactivepixel/events{/privacy}","received_events_url":"https://api.github.com/users/reactivepixel/received_events","type":"User","site_admin":false},"repo":{"id":53024384,"name":"appStore","full_name":"reactivepixel/appStore","owner":{"login":"reactivepixel","id":430063,"avatar_url":"https://avatars.githubusercontent.com/u/430063?v=3","gravatar_id":"","url":"https://api.github.com/users/reactivepixel","html_url":"https://github.com/reactivepixel","followers_url":"https://api.github.com/users/reactivepixel/followers","following_url":"https://api.github.com/users/reactivepixel/following{/other_user}","gists_url":"https://api.github.com/users/reactivepixel/gists{/gist_id}","starred_url":"https://api.github.com/users/reactivepixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactivepixel/subscriptions","organizations_url":"https://api.github.com/users/reactivepixel/orgs","repos_url":"https://api.github.com/users/reactivepixel/repos","events_url":"https://api.github.com/users/reactivepixel/events{/privacy}","received_events_url":"https://api.github.com/users/reactivepixel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reactivepixel/appStore","description":"A Game & Application Store","fork":false,"url":"https://api.github.com/repos/reactivepixel/appStore","forks_url":"https://api.github.com/repos/reactivepixel/appStore/forks","keys_url":"https://api.github.com/repos/reactivepixel/appStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reactivepixel/appStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reactivepixel/appStore/teams","hooks_url":"https://api.github.com/repos/reactivepixel/appStore/hooks","issue_events_url":"https://api.github.com/repos/reactivepixel/appStore/issues/events{/number}","events_url":"https://api.github.com/repos/reactivepixel/appStore/events","assignees_url":"https://api.github.com/repos/reactivepixel/appStore/assignees{/user}","branches_url":"https://api.github.com/repos/reactivepixel/appStore/branches{/branch}","tags_url":"https://api.github.com/repos/reactivepixel/appStore/tags","blobs_url":"https://api.github.com/repos/reactivepixel/appStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reactivepixel/appStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reactivepixel/appStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/reactivepixel/appStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reactivepixel/appStore/statuses/{sha}","languages_url":"https://api.github.com/repos/reactivepixel/appStore/languages","stargazers_url":"https://api.github.com/repos/reactivepixel/appStore/stargazers","contributors_url":"https://api.github.com/repos/reactivepixel/appStore/contributors","subscribers_url":"https://api.github.com/repos/reactivepixel/appStore/subscribers","subscription_url":"https://api.github.com/repos/reactivepixel/appStore/subscription","commits_url":"https://api.github.com/repos/reactivepixel/appStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/reactivepixel/appStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/reactivepixel/appStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/reactivepixel/appStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/reactivepixel/appStore/contents/{+path}","compare_url":"https://api.github.com/repos/reactivepixel/appStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reactivepixel/appStore/merges","archive_url":"https://api.github.com/repos/reactivepixel/appStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reactivepixel/appStore/downloads","issues_url":"https://api.github.com/repos/reactivepixel/appStore/issues{/number}","pulls_url":"https://api.github.com/repos/reactivepixel/appStore/pulls{/number}","milestones_url":"https://api.github.com/repos/reactivepixel/appStore/milestones{/number}","notifications_url":"https://api.github.com/repos/reactivepixel/appStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reactivepixel/appStore/labels{/name}","releases_url":"https://api.github.com/repos/reactivepixel/appStore/releases{/id}","deployments_url":"https://api.github.com/repos/reactivepixel/appStore/deployments","created_at":"2016-03-03T05:46:19Z","updated_at":"2016-03-04T20:15:07Z","pushed_at":"2016-04-16T06:01:59Z","git_url":"git://github.com/reactivepixel/appStore.git","ssh_url":"git@github.com:reactivepixel/appStore.git","clone_url":"https://github.com/reactivepixel/appStore.git","svn_url":"https://github.com/reactivepixel/appStore","homepage":"","size":448,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":41,"forks":1,"open_issues":41,"watchers":0,"default_branch":"master"}},"base":{"label":"reactivepixel:release","ref":"release","sha":"7e62c7170a4e9bc4e41b54e39c8618eaf3ed3dcb","user":{"login":"reactivepixel","id":430063,"avatar_url":"https://avatars.githubusercontent.com/u/430063?v=3","gravatar_id":"","url":"https://api.github.com/users/reactivepixel","html_url":"https://github.com/reactivepixel","followers_url":"https://api.github.com/users/reactivepixel/followers","following_url":"https://api.github.com/users/reactivepixel/following{/other_user}","gists_url":"https://api.github.com/users/reactivepixel/gists{/gist_id}","starred_url":"https://api.github.com/users/reactivepixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactivepixel/subscriptions","organizations_url":"https://api.github.com/users/reactivepixel/orgs","repos_url":"https://api.github.com/users/reactivepixel/repos","events_url":"https://api.github.com/users/reactivepixel/events{/privacy}","received_events_url":"https://api.github.com/users/reactivepixel/received_events","type":"User","site_admin":false},"repo":{"id":53024384,"name":"appStore","full_name":"reactivepixel/appStore","owner":{"login":"reactivepixel","id":430063,"avatar_url":"https://avatars.githubusercontent.com/u/430063?v=3","gravatar_id":"","url":"https://api.github.com/users/reactivepixel","html_url":"https://github.com/reactivepixel","followers_url":"https://api.github.com/users/reactivepixel/followers","following_url":"https://api.github.com/users/reactivepixel/following{/other_user}","gists_url":"https://api.github.com/users/reactivepixel/gists{/gist_id}","starred_url":"https://api.github.com/users/reactivepixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactivepixel/subscriptions","organizations_url":"https://api.github.com/users/reactivepixel/orgs","repos_url":"https://api.github.com/users/reactivepixel/repos","events_url":"https://api.github.com/users/reactivepixel/events{/privacy}","received_events_url":"https://api.github.com/users/reactivepixel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reactivepixel/appStore","description":"A Game & Application Store","fork":false,"url":"https://api.github.com/repos/reactivepixel/appStore","forks_url":"https://api.github.com/repos/reactivepixel/appStore/forks","keys_url":"https://api.github.com/repos/reactivepixel/appStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reactivepixel/appStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reactivepixel/appStore/teams","hooks_url":"https://api.github.com/repos/reactivepixel/appStore/hooks","issue_events_url":"https://api.github.com/repos/reactivepixel/appStore/issues/events{/number}","events_url":"https://api.github.com/repos/reactivepixel/appStore/events","assignees_url":"https://api.github.com/repos/reactivepixel/appStore/assignees{/user}","branches_url":"https://api.github.com/repos/reactivepixel/appStore/branches{/branch}","tags_url":"https://api.github.com/repos/reactivepixel/appStore/tags","blobs_url":"https://api.github.com/repos/reactivepixel/appStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reactivepixel/appStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reactivepixel/appStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/reactivepixel/appStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reactivepixel/appStore/statuses/{sha}","languages_url":"https://api.github.com/repos/reactivepixel/appStore/languages","stargazers_url":"https://api.github.com/repos/reactivepixel/appStore/stargazers","contributors_url":"https://api.github.com/repos/reactivepixel/appStore/contributors","subscribers_url":"https://api.github.com/repos/reactivepixel/appStore/subscribers","subscription_url":"https://api.github.com/repos/reactivepixel/appStore/subscription","commits_url":"https://api.github.com/repos/reactivepixel/appStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/reactivepixel/appStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/reactivepixel/appStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/reactivepixel/appStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/reactivepixel/appStore/contents/{+path}","compare_url":"https://api.github.com/repos/reactivepixel/appStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reactivepixel/appStore/merges","archive_url":"https://api.github.com/repos/reactivepixel/appStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reactivepixel/appStore/downloads","issues_url":"https://api.github.com/repos/reactivepixel/appStore/issues{/number}","pulls_url":"https://api.github.com/repos/reactivepixel/appStore/pulls{/number}","milestones_url":"https://api.github.com/repos/reactivepixel/appStore/milestones{/number}","notifications_url":"https://api.github.com/repos/reactivepixel/appStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reactivepixel/appStore/labels{/name}","releases_url":"https://api.github.com/repos/reactivepixel/appStore/releases{/id}","deployments_url":"https://api.github.com/repos/reactivepixel/appStore/deployments","created_at":"2016-03-03T05:46:19Z","updated_at":"2016-03-04T20:15:07Z","pushed_at":"2016-04-16T06:01:59Z","git_url":"git://github.com/reactivepixel/appStore.git","ssh_url":"git@github.com:reactivepixel/appStore.git","clone_url":"https://github.com/reactivepixel/appStore.git","svn_url":"https://github.com/reactivepixel/appStore","homepage":"","size":448,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":41,"forks":1,"open_issues":41,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reactivepixel/appStore/pulls/2"},"html":{"href":"https://github.com/reactivepixel/appStore/pull/2"},"issue":{"href":"https://api.github.com/repos/reactivepixel/appStore/issues/2"},"comments":{"href":"https://api.github.com/repos/reactivepixel/appStore/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/reactivepixel/appStore/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/reactivepixel/appStore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reactivepixel/appStore/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/reactivepixel/appStore/statuses/f4ade7432bd7434d85e7ecc7243220424700b49a"}}}}