{"action":"created","comment":{"url":"https://api.github.com/repos/sv-bootcamp/goober/pulls/comments/82333203","pull_request_review_id":3248739,"id":82333203,"diff_hunk":"@@ -1,27 +1,64 @@\n import db from '../database';\n import {APIError} from '../ErrorHandler';\n-import {KeyMaker, DEFAULT_PRECISON} from './models';\n+import {KeyMaker, KeyUtils, ALIVE, DEFAULT_PRECISON} from './models';\n \n export default {\n   getAll: (req, res, cb) => {","path":"src/server/items/controllers.js","position":7,"original_position":7,"commit_id":"0ad679a272d1d3a4289572257123991e32960a20","original_commit_id":"0ad679a272d1d3a4289572257123991e32960a20","user":{"login":"festinalente91","id":8946248,"avatar_url":"https://avatars.githubusercontent.com/u/8946248?v=3","gravatar_id":"","url":"https://api.github.com/users/festinalente91","html_url":"https://github.com/festinalente91","followers_url":"https://api.github.com/users/festinalente91/followers","following_url":"https://api.github.com/users/festinalente91/following{/other_user}","gists_url":"https://api.github.com/users/festinalente91/gists{/gist_id}","starred_url":"https://api.github.com/users/festinalente91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/festinalente91/subscriptions","organizations_url":"https://api.github.com/users/festinalente91/orgs","repos_url":"https://api.github.com/users/festinalente91/repos","events_url":"https://api.github.com/users/festinalente91/events{/privacy}","received_events_url":"https://api.github.com/users/festinalente91/received_events","type":"User","site_admin":false},"body":"Any recommendations? haha\r\nI thought basically this function is used for querying all items,\r\nand if you want to add some conditions you can add querystring for that. :)","created_at":"2016-10-07T06:07:38Z","updated_at":"2016-10-07T06:07:38Z","html_url":"https://github.com/sv-bootcamp/goober/pull/53#discussion_r82333203","pull_request_url":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/sv-bootcamp/goober/pulls/comments/82333203"},"html":{"href":"https://github.com/sv-bootcamp/goober/pull/53#discussion_r82333203"},"pull_request":{"href":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53","id":88207235,"html_url":"https://github.com/sv-bootcamp/goober/pull/53","diff_url":"https://github.com/sv-bootcamp/goober/pull/53.diff","patch_url":"https://github.com/sv-bootcamp/goober/pull/53.patch","issue_url":"https://api.github.com/repos/sv-bootcamp/goober/issues/53","number":53,"state":"open","locked":false,"title":"Get by area","user":{"login":"festinalente91","id":8946248,"avatar_url":"https://avatars.githubusercontent.com/u/8946248?v=3","gravatar_id":"","url":"https://api.github.com/users/festinalente91","html_url":"https://github.com/festinalente91","followers_url":"https://api.github.com/users/festinalente91/followers","following_url":"https://api.github.com/users/festinalente91/following{/other_user}","gists_url":"https://api.github.com/users/festinalente91/gists{/gist_id}","starred_url":"https://api.github.com/users/festinalente91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/festinalente91/subscriptions","organizations_url":"https://api.github.com/users/festinalente91/orgs","repos_url":"https://api.github.com/users/festinalente91/repos","events_url":"https://api.github.com/users/festinalente91/events{/privacy}","received_events_url":"https://api.github.com/users/festinalente91/received_events","type":"User","site_admin":false},"body":"added get by area.\r\nI tested get items include neighbor by area with query lat,lng,zoom","created_at":"2016-10-06T06:52:47Z","updated_at":"2016-10-07T06:07:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9a9db2708cad48d4d1f9a685501bba126fb54a7","assignee":{"login":"fguy","id":1557628,"avatar_url":"https://avatars.githubusercontent.com/u/1557628?v=3","gravatar_id":"","url":"https://api.github.com/users/fguy","html_url":"https://github.com/fguy","followers_url":"https://api.github.com/users/fguy/followers","following_url":"https://api.github.com/users/fguy/following{/other_user}","gists_url":"https://api.github.com/users/fguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fguy/subscriptions","organizations_url":"https://api.github.com/users/fguy/orgs","repos_url":"https://api.github.com/users/fguy/repos","events_url":"https://api.github.com/users/fguy/events{/privacy}","received_events_url":"https://api.github.com/users/fguy/received_events","type":"User","site_admin":false},"assignees":[{"login":"fguy","id":1557628,"avatar_url":"https://avatars.githubusercontent.com/u/1557628?v=3","gravatar_id":"","url":"https://api.github.com/users/fguy","html_url":"https://github.com/fguy","followers_url":"https://api.github.com/users/fguy/followers","following_url":"https://api.github.com/users/fguy/following{/other_user}","gists_url":"https://api.github.com/users/fguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fguy/subscriptions","organizations_url":"https://api.github.com/users/fguy/orgs","repos_url":"https://api.github.com/users/fguy/repos","events_url":"https://api.github.com/users/fguy/events{/privacy}","received_events_url":"https://api.github.com/users/fguy/received_events","type":"User","site_admin":false},{"login":"festinalente91","id":8946248,"avatar_url":"https://avatars.githubusercontent.com/u/8946248?v=3","gravatar_id":"","url":"https://api.github.com/users/festinalente91","html_url":"https://github.com/festinalente91","followers_url":"https://api.github.com/users/festinalente91/followers","following_url":"https://api.github.com/users/festinalente91/following{/other_user}","gists_url":"https://api.github.com/users/festinalente91/gists{/gist_id}","starred_url":"https://api.github.com/users/festinalente91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/festinalente91/subscriptions","organizations_url":"https://api.github.com/users/festinalente91/orgs","repos_url":"https://api.github.com/users/festinalente91/repos","events_url":"https://api.github.com/users/festinalente91/events{/privacy}","received_events_url":"https://api.github.com/users/festinalente91/received_events","type":"User","site_admin":false},{"login":"ovekyc","id":13380251,"avatar_url":"https://avatars.githubusercontent.com/u/13380251?v=3","gravatar_id":"","url":"https://api.github.com/users/ovekyc","html_url":"https://github.com/ovekyc","followers_url":"https://api.github.com/users/ovekyc/followers","following_url":"https://api.github.com/users/ovekyc/following{/other_user}","gists_url":"https://api.github.com/users/ovekyc/gists{/gist_id}","starred_url":"https://api.github.com/users/ovekyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovekyc/subscriptions","organizations_url":"https://api.github.com/users/ovekyc/orgs","repos_url":"https://api.github.com/users/ovekyc/repos","events_url":"https://api.github.com/users/ovekyc/events{/privacy}","received_events_url":"https://api.github.com/users/ovekyc/received_events","type":"User","site_admin":false},{"login":"shberry16","id":20808444,"avatar_url":"https://avatars.githubusercontent.com/u/20808444?v=3","gravatar_id":"","url":"https://api.github.com/users/shberry16","html_url":"https://github.com/shberry16","followers_url":"https://api.github.com/users/shberry16/followers","following_url":"https://api.github.com/users/shberry16/following{/other_user}","gists_url":"https://api.github.com/users/shberry16/gists{/gist_id}","starred_url":"https://api.github.com/users/shberry16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shberry16/subscriptions","organizations_url":"https://api.github.com/users/shberry16/orgs","repos_url":"https://api.github.com/users/shberry16/repos","events_url":"https://api.github.com/users/shberry16/events{/privacy}","received_events_url":"https://api.github.com/users/shberry16/received_events","type":"User","site_admin":false},{"login":"HewonJeong","id":20923534,"avatar_url":"https://avatars.githubusercontent.com/u/20923534?v=3","gravatar_id":"","url":"https://api.github.com/users/HewonJeong","html_url":"https://github.com/HewonJeong","followers_url":"https://api.github.com/users/HewonJeong/followers","following_url":"https://api.github.com/users/HewonJeong/following{/other_user}","gists_url":"https://api.github.com/users/HewonJeong/gists{/gist_id}","starred_url":"https://api.github.com/users/HewonJeong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HewonJeong/subscriptions","organizations_url":"https://api.github.com/users/HewonJeong/orgs","repos_url":"https://api.github.com/users/HewonJeong/repos","events_url":"https://api.github.com/users/HewonJeong/events{/privacy}","received_events_url":"https://api.github.com/users/HewonJeong/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53/commits","review_comments_url":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53/comments","review_comment_url":"https://api.github.com/repos/sv-bootcamp/goober/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sv-bootcamp/goober/issues/53/comments","statuses_url":"https://api.github.com/repos/sv-bootcamp/goober/statuses/0ad679a272d1d3a4289572257123991e32960a20","head":{"label":"sv-bootcamp:getByArea","ref":"getByArea","sha":"0ad679a272d1d3a4289572257123991e32960a20","user":{"login":"sv-bootcamp","id":20648483,"avatar_url":"https://avatars.githubusercontent.com/u/20648483?v=3","gravatar_id":"","url":"https://api.github.com/users/sv-bootcamp","html_url":"https://github.com/sv-bootcamp","followers_url":"https://api.github.com/users/sv-bootcamp/followers","following_url":"https://api.github.com/users/sv-bootcamp/following{/other_user}","gists_url":"https://api.github.com/users/sv-bootcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/sv-bootcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sv-bootcamp/subscriptions","organizations_url":"https://api.github.com/users/sv-bootcamp/orgs","repos_url":"https://api.github.com/users/sv-bootcamp/repos","events_url":"https://api.github.com/users/sv-bootcamp/events{/privacy}","received_events_url":"https://api.github.com/users/sv-bootcamp/received_events","type":"Organization","site_admin":false},"repo":{"id":66620161,"name":"goober","full_name":"sv-bootcamp/goober","owner":{"login":"sv-bootcamp","id":20648483,"avatar_url":"https://avatars.githubusercontent.com/u/20648483?v=3","gravatar_id":"","url":"https://api.github.com/users/sv-bootcamp","html_url":"https://github.com/sv-bootcamp","followers_url":"https://api.github.com/users/sv-bootcamp/followers","following_url":"https://api.github.com/users/sv-bootcamp/following{/other_user}","gists_url":"https://api.github.com/users/sv-bootcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/sv-bootcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sv-bootcamp/subscriptions","organizations_url":"https://api.github.com/users/sv-bootcamp/orgs","repos_url":"https://api.github.com/users/sv-bootcamp/repos","events_url":"https://api.github.com/users/sv-bootcamp/events{/privacy}","received_events_url":"https://api.github.com/users/sv-bootcamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sv-bootcamp/goober","description":null,"fork":false,"url":"https://api.github.com/repos/sv-bootcamp/goober","forks_url":"https://api.github.com/repos/sv-bootcamp/goober/forks","keys_url":"https://api.github.com/repos/sv-bootcamp/goober/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sv-bootcamp/goober/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sv-bootcamp/goober/teams","hooks_url":"https://api.github.com/repos/sv-bootcamp/goober/hooks","issue_events_url":"https://api.github.com/repos/sv-bootcamp/goober/issues/events{/number}","events_url":"https://api.github.com/repos/sv-bootcamp/goober/events","assignees_url":"https://api.github.com/repos/sv-bootcamp/goober/assignees{/user}","branches_url":"https://api.github.com/repos/sv-bootcamp/goober/branches{/branch}","tags_url":"https://api.github.com/repos/sv-bootcamp/goober/tags","blobs_url":"https://api.github.com/repos/sv-bootcamp/goober/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sv-bootcamp/goober/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sv-bootcamp/goober/git/refs{/sha}","trees_url":"https://api.github.com/repos/sv-bootcamp/goober/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sv-bootcamp/goober/statuses/{sha}","languages_url":"https://api.github.com/repos/sv-bootcamp/goober/languages","stargazers_url":"https://api.github.com/repos/sv-bootcamp/goober/stargazers","contributors_url":"https://api.github.com/repos/sv-bootcamp/goober/contributors","subscribers_url":"https://api.github.com/repos/sv-bootcamp/goober/subscribers","subscription_url":"https://api.github.com/repos/sv-bootcamp/goober/subscription","commits_url":"https://api.github.com/repos/sv-bootcamp/goober/commits{/sha}","git_commits_url":"https://api.github.com/repos/sv-bootcamp/goober/git/commits{/sha}","comments_url":"https://api.github.com/repos/sv-bootcamp/goober/comments{/number}","issue_comment_url":"https://api.github.com/repos/sv-bootcamp/goober/issues/comments{/number}","contents_url":"https://api.github.com/repos/sv-bootcamp/goober/contents/{+path}","compare_url":"https://api.github.com/repos/sv-bootcamp/goober/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sv-bootcamp/goober/merges","archive_url":"https://api.github.com/repos/sv-bootcamp/goober/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sv-bootcamp/goober/downloads","issues_url":"https://api.github.com/repos/sv-bootcamp/goober/issues{/number}","pulls_url":"https://api.github.com/repos/sv-bootcamp/goober/pulls{/number}","milestones_url":"https://api.github.com/repos/sv-bootcamp/goober/milestones{/number}","notifications_url":"https://api.github.com/repos/sv-bootcamp/goober/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sv-bootcamp/goober/labels{/name}","releases_url":"https://api.github.com/repos/sv-bootcamp/goober/releases{/id}","deployments_url":"https://api.github.com/repos/sv-bootcamp/goober/deployments","created_at":"2016-08-26T05:47:45Z","updated_at":"2016-09-07T10:50:42Z","pushed_at":"2016-10-07T05:42:09Z","git_url":"git://github.com/sv-bootcamp/goober.git","ssh_url":"git@github.com:sv-bootcamp/goober.git","clone_url":"https://github.com/sv-bootcamp/goober.git","svn_url":"https://github.com/sv-bootcamp/goober","homepage":null,"size":259,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"sv-bootcamp:item","ref":"item","sha":"7798465e96dcf212152c53fb90edc922be090d7c","user":{"login":"sv-bootcamp","id":20648483,"avatar_url":"https://avatars.githubusercontent.com/u/20648483?v=3","gravatar_id":"","url":"https://api.github.com/users/sv-bootcamp","html_url":"https://github.com/sv-bootcamp","followers_url":"https://api.github.com/users/sv-bootcamp/followers","following_url":"https://api.github.com/users/sv-bootcamp/following{/other_user}","gists_url":"https://api.github.com/users/sv-bootcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/sv-bootcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sv-bootcamp/subscriptions","organizations_url":"https://api.github.com/users/sv-bootcamp/orgs","repos_url":"https://api.github.com/users/sv-bootcamp/repos","events_url":"https://api.github.com/users/sv-bootcamp/events{/privacy}","received_events_url":"https://api.github.com/users/sv-bootcamp/received_events","type":"Organization","site_admin":false},"repo":{"id":66620161,"name":"goober","full_name":"sv-bootcamp/goober","owner":{"login":"sv-bootcamp","id":20648483,"avatar_url":"https://avatars.githubusercontent.com/u/20648483?v=3","gravatar_id":"","url":"https://api.github.com/users/sv-bootcamp","html_url":"https://github.com/sv-bootcamp","followers_url":"https://api.github.com/users/sv-bootcamp/followers","following_url":"https://api.github.com/users/sv-bootcamp/following{/other_user}","gists_url":"https://api.github.com/users/sv-bootcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/sv-bootcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sv-bootcamp/subscriptions","organizations_url":"https://api.github.com/users/sv-bootcamp/orgs","repos_url":"https://api.github.com/users/sv-bootcamp/repos","events_url":"https://api.github.com/users/sv-bootcamp/events{/privacy}","received_events_url":"https://api.github.com/users/sv-bootcamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sv-bootcamp/goober","description":null,"fork":false,"url":"https://api.github.com/repos/sv-bootcamp/goober","forks_url":"https://api.github.com/repos/sv-bootcamp/goober/forks","keys_url":"https://api.github.com/repos/sv-bootcamp/goober/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sv-bootcamp/goober/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sv-bootcamp/goober/teams","hooks_url":"https://api.github.com/repos/sv-bootcamp/goober/hooks","issue_events_url":"https://api.github.com/repos/sv-bootcamp/goober/issues/events{/number}","events_url":"https://api.github.com/repos/sv-bootcamp/goober/events","assignees_url":"https://api.github.com/repos/sv-bootcamp/goober/assignees{/user}","branches_url":"https://api.github.com/repos/sv-bootcamp/goober/branches{/branch}","tags_url":"https://api.github.com/repos/sv-bootcamp/goober/tags","blobs_url":"https://api.github.com/repos/sv-bootcamp/goober/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sv-bootcamp/goober/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sv-bootcamp/goober/git/refs{/sha}","trees_url":"https://api.github.com/repos/sv-bootcamp/goober/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sv-bootcamp/goober/statuses/{sha}","languages_url":"https://api.github.com/repos/sv-bootcamp/goober/languages","stargazers_url":"https://api.github.com/repos/sv-bootcamp/goober/stargazers","contributors_url":"https://api.github.com/repos/sv-bootcamp/goober/contributors","subscribers_url":"https://api.github.com/repos/sv-bootcamp/goober/subscribers","subscription_url":"https://api.github.com/repos/sv-bootcamp/goober/subscription","commits_url":"https://api.github.com/repos/sv-bootcamp/goober/commits{/sha}","git_commits_url":"https://api.github.com/repos/sv-bootcamp/goober/git/commits{/sha}","comments_url":"https://api.github.com/repos/sv-bootcamp/goober/comments{/number}","issue_comment_url":"https://api.github.com/repos/sv-bootcamp/goober/issues/comments{/number}","contents_url":"https://api.github.com/repos/sv-bootcamp/goober/contents/{+path}","compare_url":"https://api.github.com/repos/sv-bootcamp/goober/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sv-bootcamp/goober/merges","archive_url":"https://api.github.com/repos/sv-bootcamp/goober/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sv-bootcamp/goober/downloads","issues_url":"https://api.github.com/repos/sv-bootcamp/goober/issues{/number}","pulls_url":"https://api.github.com/repos/sv-bootcamp/goober/pulls{/number}","milestones_url":"https://api.github.com/repos/sv-bootcamp/goober/milestones{/number}","notifications_url":"https://api.github.com/repos/sv-bootcamp/goober/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sv-bootcamp/goober/labels{/name}","releases_url":"https://api.github.com/repos/sv-bootcamp/goober/releases{/id}","deployments_url":"https://api.github.com/repos/sv-bootcamp/goober/deployments","created_at":"2016-08-26T05:47:45Z","updated_at":"2016-09-07T10:50:42Z","pushed_at":"2016-10-07T05:42:09Z","git_url":"git://github.com/sv-bootcamp/goober.git","ssh_url":"git@github.com:sv-bootcamp/goober.git","clone_url":"https://github.com/sv-bootcamp/goober.git","svn_url":"https://github.com/sv-bootcamp/goober","homepage":null,"size":259,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53"},"html":{"href":"https://github.com/sv-bootcamp/goober/pull/53"},"issue":{"href":"https://api.github.com/repos/sv-bootcamp/goober/issues/53"},"comments":{"href":"https://api.github.com/repos/sv-bootcamp/goober/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/sv-bootcamp/goober/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sv-bootcamp/goober/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/sv-bootcamp/goober/statuses/0ad679a272d1d3a4289572257123991e32960a20"}}}}
{"actor":{"display_login":"festinalente91"}}