{"action":"created","comment":{"url":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/comments/140369936","pull_request_review_id":64434814,"id":140369936,"diff_hunk":"@@ -339,7 +354,7 @@ module.exports.getInvitees = function(unhide=false) {\n       var promiseArray = users.map(eachUser => eachUser.fetch({withRelated: [\n         {invitedToBoards: function(query) {\n           //query.whereRaw('last_email = \"null\"');\n-          query.where('last_email', null).orWhereRaw(`last_email < now()-INTERVAL '2 days'`);\n+          query.where('last_email', null).orWhereRaw('last_email < now()-INTERVAL \\'2 days\\'');","path":"db/helpers.js","position":36,"original_position":36,"commit_id":"f76ed5bf97ed42cd367b749a9b2cd6113aeb5da7","original_commit_id":"f76ed5bf97ed42cd367b749a9b2cd6113aeb5da7","user":{"login":"stevepkuo","id":14355395,"avatar_url":"https://avatars0.githubusercontent.com/u/14355395?v=4","gravatar_id":"","url":"https://api.github.com/users/stevepkuo","html_url":"https://github.com/stevepkuo","followers_url":"https://api.github.com/users/stevepkuo/followers","following_url":"https://api.github.com/users/stevepkuo/following{/other_user}","gists_url":"https://api.github.com/users/stevepkuo/gists{/gist_id}","starred_url":"https://api.github.com/users/stevepkuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevepkuo/subscriptions","organizations_url":"https://api.github.com/users/stevepkuo/orgs","repos_url":"https://api.github.com/users/stevepkuo/repos","events_url":"https://api.github.com/users/stevepkuo/events{/privacy}","received_events_url":"https://api.github.com/users/stevepkuo/received_events","type":"User","site_admin":false},"body":"i think the backtick ` is needed. or else it will interfere with the inner single quotes. and raw query seems to only like inner single quotes","created_at":"2017-09-21T21:57:19Z","updated_at":"2017-09-21T21:57:20Z","html_url":"https://github.com/Benevolent-Roosters/thesis/pull/108#discussion_r140369936","pull_request_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/comments/140369936"},"html":{"href":"https://github.com/Benevolent-Roosters/thesis/pull/108#discussion_r140369936"},"pull_request":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108","id":142415022,"html_url":"https://github.com/Benevolent-Roosters/thesis/pull/108","diff_url":"https://github.com/Benevolent-Roosters/thesis/pull/108.diff","patch_url":"https://github.com/Benevolent-Roosters/thesis/pull/108.patch","issue_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/issues/108","number":108,"state":"open","locked":false,"title":"Fix server routing and add tests for CLI","user":{"login":"brendanusa","id":22718585,"avatar_url":"https://avatars3.githubusercontent.com/u/22718585?v=4","gravatar_id":"","url":"https://api.github.com/users/brendanusa","html_url":"https://github.com/brendanusa","followers_url":"https://api.github.com/users/brendanusa/followers","following_url":"https://api.github.com/users/brendanusa/following{/other_user}","gists_url":"https://api.github.com/users/brendanusa/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanusa/subscriptions","organizations_url":"https://api.github.com/users/brendanusa/orgs","repos_url":"https://api.github.com/users/brendanusa/repos","events_url":"https://api.github.com/users/brendanusa/events{/privacy}","received_events_url":"https://api.github.com/users/brendanusa/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-21T18:35:45Z","updated_at":"2017-09-21T21:57:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84e29579d02986302f7978df29c39664c73d2eb4","assignee":{"login":"brendanusa","id":22718585,"avatar_url":"https://avatars3.githubusercontent.com/u/22718585?v=4","gravatar_id":"","url":"https://api.github.com/users/brendanusa","html_url":"https://github.com/brendanusa","followers_url":"https://api.github.com/users/brendanusa/followers","following_url":"https://api.github.com/users/brendanusa/following{/other_user}","gists_url":"https://api.github.com/users/brendanusa/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanusa/subscriptions","organizations_url":"https://api.github.com/users/brendanusa/orgs","repos_url":"https://api.github.com/users/brendanusa/repos","events_url":"https://api.github.com/users/brendanusa/events{/privacy}","received_events_url":"https://api.github.com/users/brendanusa/received_events","type":"User","site_admin":false},"assignees":[{"login":"brendanusa","id":22718585,"avatar_url":"https://avatars3.githubusercontent.com/u/22718585?v=4","gravatar_id":"","url":"https://api.github.com/users/brendanusa","html_url":"https://github.com/brendanusa","followers_url":"https://api.github.com/users/brendanusa/followers","following_url":"https://api.github.com/users/brendanusa/following{/other_user}","gists_url":"https://api.github.com/users/brendanusa/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanusa/subscriptions","organizations_url":"https://api.github.com/users/brendanusa/orgs","repos_url":"https://api.github.com/users/brendanusa/repos","events_url":"https://api.github.com/users/brendanusa/events{/privacy}","received_events_url":"https://api.github.com/users/brendanusa/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"dsc03","id":25214199,"avatar_url":"https://avatars0.githubusercontent.com/u/25214199?v=4","gravatar_id":"","url":"https://api.github.com/users/dsc03","html_url":"https://github.com/dsc03","followers_url":"https://api.github.com/users/dsc03/followers","following_url":"https://api.github.com/users/dsc03/following{/other_user}","gists_url":"https://api.github.com/users/dsc03/gists{/gist_id}","starred_url":"https://api.github.com/users/dsc03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsc03/subscriptions","organizations_url":"https://api.github.com/users/dsc03/orgs","repos_url":"https://api.github.com/users/dsc03/repos","events_url":"https://api.github.com/users/dsc03/events{/privacy}","received_events_url":"https://api.github.com/users/dsc03/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108/commits","review_comments_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108/comments","review_comment_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/issues/108/comments","statuses_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/statuses/f76ed5bf97ed42cd367b749a9b2cd6113aeb5da7","head":{"label":"brendanusa:cli-routes2","ref":"cli-routes2","sha":"f76ed5bf97ed42cd367b749a9b2cd6113aeb5da7","user":{"login":"brendanusa","id":22718585,"avatar_url":"https://avatars3.githubusercontent.com/u/22718585?v=4","gravatar_id":"","url":"https://api.github.com/users/brendanusa","html_url":"https://github.com/brendanusa","followers_url":"https://api.github.com/users/brendanusa/followers","following_url":"https://api.github.com/users/brendanusa/following{/other_user}","gists_url":"https://api.github.com/users/brendanusa/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanusa/subscriptions","organizations_url":"https://api.github.com/users/brendanusa/orgs","repos_url":"https://api.github.com/users/brendanusa/repos","events_url":"https://api.github.com/users/brendanusa/events{/privacy}","received_events_url":"https://api.github.com/users/brendanusa/received_events","type":"User","site_admin":false},"repo":{"id":101937533,"name":"thesis","full_name":"brendanusa/thesis","owner":{"login":"brendanusa","id":22718585,"avatar_url":"https://avatars3.githubusercontent.com/u/22718585?v=4","gravatar_id":"","url":"https://api.github.com/users/brendanusa","html_url":"https://github.com/brendanusa","followers_url":"https://api.github.com/users/brendanusa/followers","following_url":"https://api.github.com/users/brendanusa/following{/other_user}","gists_url":"https://api.github.com/users/brendanusa/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanusa/subscriptions","organizations_url":"https://api.github.com/users/brendanusa/orgs","repos_url":"https://api.github.com/users/brendanusa/repos","events_url":"https://api.github.com/users/brendanusa/events{/privacy}","received_events_url":"https://api.github.com/users/brendanusa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brendanusa/thesis","description":null,"fork":true,"url":"https://api.github.com/repos/brendanusa/thesis","forks_url":"https://api.github.com/repos/brendanusa/thesis/forks","keys_url":"https://api.github.com/repos/brendanusa/thesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brendanusa/thesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brendanusa/thesis/teams","hooks_url":"https://api.github.com/repos/brendanusa/thesis/hooks","issue_events_url":"https://api.github.com/repos/brendanusa/thesis/issues/events{/number}","events_url":"https://api.github.com/repos/brendanusa/thesis/events","assignees_url":"https://api.github.com/repos/brendanusa/thesis/assignees{/user}","branches_url":"https://api.github.com/repos/brendanusa/thesis/branches{/branch}","tags_url":"https://api.github.com/repos/brendanusa/thesis/tags","blobs_url":"https://api.github.com/repos/brendanusa/thesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brendanusa/thesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brendanusa/thesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/brendanusa/thesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brendanusa/thesis/statuses/{sha}","languages_url":"https://api.github.com/repos/brendanusa/thesis/languages","stargazers_url":"https://api.github.com/repos/brendanusa/thesis/stargazers","contributors_url":"https://api.github.com/repos/brendanusa/thesis/contributors","subscribers_url":"https://api.github.com/repos/brendanusa/thesis/subscribers","subscription_url":"https://api.github.com/repos/brendanusa/thesis/subscription","commits_url":"https://api.github.com/repos/brendanusa/thesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/brendanusa/thesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/brendanusa/thesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/brendanusa/thesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/brendanusa/thesis/contents/{+path}","compare_url":"https://api.github.com/repos/brendanusa/thesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brendanusa/thesis/merges","archive_url":"https://api.github.com/repos/brendanusa/thesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brendanusa/thesis/downloads","issues_url":"https://api.github.com/repos/brendanusa/thesis/issues{/number}","pulls_url":"https://api.github.com/repos/brendanusa/thesis/pulls{/number}","milestones_url":"https://api.github.com/repos/brendanusa/thesis/milestones{/number}","notifications_url":"https://api.github.com/repos/brendanusa/thesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brendanusa/thesis/labels{/name}","releases_url":"https://api.github.com/repos/brendanusa/thesis/releases{/id}","deployments_url":"https://api.github.com/repos/brendanusa/thesis/deployments","created_at":"2017-08-30T23:20:07Z","updated_at":"2017-08-30T23:20:09Z","pushed_at":"2017-09-21T18:34:18Z","git_url":"git://github.com/brendanusa/thesis.git","ssh_url":"git@github.com:brendanusa/thesis.git","clone_url":"https://github.com/brendanusa/thesis.git","svn_url":"https://github.com/brendanusa/thesis","homepage":null,"size":1065,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":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":0,"default_branch":"master"}},"base":{"label":"Benevolent-Roosters:master","ref":"master","sha":"10ea2a5b735e8a4053c0a1eca8554a967e7816bc","user":{"login":"Benevolent-Roosters","id":31450534,"avatar_url":"https://avatars0.githubusercontent.com/u/31450534?v=4","gravatar_id":"","url":"https://api.github.com/users/Benevolent-Roosters","html_url":"https://github.com/Benevolent-Roosters","followers_url":"https://api.github.com/users/Benevolent-Roosters/followers","following_url":"https://api.github.com/users/Benevolent-Roosters/following{/other_user}","gists_url":"https://api.github.com/users/Benevolent-Roosters/gists{/gist_id}","starred_url":"https://api.github.com/users/Benevolent-Roosters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benevolent-Roosters/subscriptions","organizations_url":"https://api.github.com/users/Benevolent-Roosters/orgs","repos_url":"https://api.github.com/users/Benevolent-Roosters/repos","events_url":"https://api.github.com/users/Benevolent-Roosters/events{/privacy}","received_events_url":"https://api.github.com/users/Benevolent-Roosters/received_events","type":"Organization","site_admin":false},"repo":{"id":101811054,"name":"thesis","full_name":"Benevolent-Roosters/thesis","owner":{"login":"Benevolent-Roosters","id":31450534,"avatar_url":"https://avatars0.githubusercontent.com/u/31450534?v=4","gravatar_id":"","url":"https://api.github.com/users/Benevolent-Roosters","html_url":"https://github.com/Benevolent-Roosters","followers_url":"https://api.github.com/users/Benevolent-Roosters/followers","following_url":"https://api.github.com/users/Benevolent-Roosters/following{/other_user}","gists_url":"https://api.github.com/users/Benevolent-Roosters/gists{/gist_id}","starred_url":"https://api.github.com/users/Benevolent-Roosters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benevolent-Roosters/subscriptions","organizations_url":"https://api.github.com/users/Benevolent-Roosters/orgs","repos_url":"https://api.github.com/users/Benevolent-Roosters/repos","events_url":"https://api.github.com/users/Benevolent-Roosters/events{/privacy}","received_events_url":"https://api.github.com/users/Benevolent-Roosters/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Benevolent-Roosters/thesis","description":null,"fork":false,"url":"https://api.github.com/repos/Benevolent-Roosters/thesis","forks_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/forks","keys_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/teams","hooks_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/hooks","issue_events_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/issues/events{/number}","events_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/events","assignees_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/assignees{/user}","branches_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/branches{/branch}","tags_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/tags","blobs_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/statuses/{sha}","languages_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/languages","stargazers_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/stargazers","contributors_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/contributors","subscribers_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/subscribers","subscription_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/subscription","commits_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/contents/{+path}","compare_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/merges","archive_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/downloads","issues_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/issues{/number}","pulls_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls{/number}","milestones_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/milestones{/number}","notifications_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/labels{/name}","releases_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/releases{/id}","deployments_url":"https://api.github.com/repos/Benevolent-Roosters/thesis/deployments","created_at":"2017-08-29T22:08:05Z","updated_at":"2017-09-21T19:26:20Z","pushed_at":"2017-09-21T21:01:39Z","git_url":"git://github.com/Benevolent-Roosters/thesis.git","ssh_url":"git@github.com:Benevolent-Roosters/thesis.git","clone_url":"https://github.com/Benevolent-Roosters/thesis.git","svn_url":"https://github.com/Benevolent-Roosters/thesis","homepage":null,"size":1081,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":24,"forks":4,"open_issues":24,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108"},"html":{"href":"https://github.com/Benevolent-Roosters/thesis/pull/108"},"issue":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/issues/108"},"comments":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/Benevolent-Roosters/thesis/statuses/f76ed5bf97ed42cd367b749a9b2cd6113aeb5da7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stevepkuo"}}