{"action":"created","comment":{"url":"https://api.github.com/repos/openforis/arena/pulls/comments/209277833","pull_request_review_id":145256529,"id":209277833,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTI3NzgzMw==","diff_hunk":"@@ -57,8 +57,8 @@ const getSurveyById = async (surveyId, draft = false, client = db) =>\n     def => dbTransformCallback(def, draft)\n   )\n \n-const getSurveyByName = async (surveyName, client = db) =>\n-  await client.oneOrNone(\n+const getSurveysByName = async (surveyName, client = db) =>\n+  await client.many(","path":"server/survey/surveyRepository.js","position":7,"original_position":7,"commit_id":"af4e6e15a2af8db514419a535358fcc8ac5c5acd","original_commit_id":"af4e6e15a2af8db514419a535358fcc8ac5c5acd","user":{"login":"minotogna","id":1138156,"node_id":"MDQ6VXNlcjExMzgxNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1138156?v=4","gravatar_id":"","url":"https://api.github.com/users/minotogna","html_url":"https://github.com/minotogna","followers_url":"https://api.github.com/users/minotogna/followers","following_url":"https://api.github.com/users/minotogna/following{/other_user}","gists_url":"https://api.github.com/users/minotogna/gists{/gist_id}","starred_url":"https://api.github.com/users/minotogna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minotogna/subscriptions","organizations_url":"https://api.github.com/users/minotogna/orgs","repos_url":"https://api.github.com/users/minotogna/repos","events_url":"https://api.github.com/users/minotogna/events{/privacy}","received_events_url":"https://api.github.com/users/minotogna/received_events","type":"User","site_admin":false},"body":"can the query return 0 elements? If yes, you cannot use many, it will reject in that case.\r\nYou can use any.  http://vitaly-t.github.io/pg-promise/Database.html#many ","created_at":"2018-08-10T14:28:11Z","updated_at":"2018-08-10T14:37:03Z","html_url":"https://github.com/openforis/arena/pull/14#discussion_r209277833","pull_request_url":"https://api.github.com/repos/openforis/arena/pulls/14","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openforis/arena/pulls/comments/209277833"},"html":{"href":"https://github.com/openforis/arena/pull/14#discussion_r209277833"},"pull_request":{"href":"https://api.github.com/repos/openforis/arena/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/openforis/arena/pulls/14","id":207612767,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NjEyNzY3","html_url":"https://github.com/openforis/arena/pull/14","diff_url":"https://github.com/openforis/arena/pull/14.diff","patch_url":"https://github.com/openforis/arena/pull/14.patch","issue_url":"https://api.github.com/repos/openforis/arena/issues/14","number":14,"state":"open","locked":false,"title":"Validation","user":{"login":"fefrain","id":1219739,"node_id":"MDQ6VXNlcjEyMTk3Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1219739?v=4","gravatar_id":"","url":"https://api.github.com/users/fefrain","html_url":"https://github.com/fefrain","followers_url":"https://api.github.com/users/fefrain/followers","following_url":"https://api.github.com/users/fefrain/following{/other_user}","gists_url":"https://api.github.com/users/fefrain/gists{/gist_id}","starred_url":"https://api.github.com/users/fefrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fefrain/subscriptions","organizations_url":"https://api.github.com/users/fefrain/orgs","repos_url":"https://api.github.com/users/fefrain/repos","events_url":"https://api.github.com/users/fefrain/events{/privacy}","received_events_url":"https://api.github.com/users/fefrain/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-10T13:30:34Z","updated_at":"2018-08-10T14:37:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2c21314234950fa6c76723d0109df8420ddb262","assignee":{"login":"fefrain","id":1219739,"node_id":"MDQ6VXNlcjEyMTk3Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1219739?v=4","gravatar_id":"","url":"https://api.github.com/users/fefrain","html_url":"https://github.com/fefrain","followers_url":"https://api.github.com/users/fefrain/followers","following_url":"https://api.github.com/users/fefrain/following{/other_user}","gists_url":"https://api.github.com/users/fefrain/gists{/gist_id}","starred_url":"https://api.github.com/users/fefrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fefrain/subscriptions","organizations_url":"https://api.github.com/users/fefrain/orgs","repos_url":"https://api.github.com/users/fefrain/repos","events_url":"https://api.github.com/users/fefrain/events{/privacy}","received_events_url":"https://api.github.com/users/fefrain/received_events","type":"User","site_admin":false},"assignees":[{"login":"fefrain","id":1219739,"node_id":"MDQ6VXNlcjEyMTk3Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1219739?v=4","gravatar_id":"","url":"https://api.github.com/users/fefrain","html_url":"https://github.com/fefrain","followers_url":"https://api.github.com/users/fefrain/followers","following_url":"https://api.github.com/users/fefrain/following{/other_user}","gists_url":"https://api.github.com/users/fefrain/gists{/gist_id}","starred_url":"https://api.github.com/users/fefrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fefrain/subscriptions","organizations_url":"https://api.github.com/users/fefrain/orgs","repos_url":"https://api.github.com/users/fefrain/repos","events_url":"https://api.github.com/users/fefrain/events{/privacy}","received_events_url":"https://api.github.com/users/fefrain/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openforis/arena/pulls/14/commits","review_comments_url":"https://api.github.com/repos/openforis/arena/pulls/14/comments","review_comment_url":"https://api.github.com/repos/openforis/arena/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openforis/arena/issues/14/comments","statuses_url":"https://api.github.com/repos/openforis/arena/statuses/af4e6e15a2af8db514419a535358fcc8ac5c5acd","head":{"label":"openforis:validation","ref":"validation","sha":"af4e6e15a2af8db514419a535358fcc8ac5c5acd","user":{"login":"openforis","id":1212750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMTI3NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1212750?v=4","gravatar_id":"","url":"https://api.github.com/users/openforis","html_url":"https://github.com/openforis","followers_url":"https://api.github.com/users/openforis/followers","following_url":"https://api.github.com/users/openforis/following{/other_user}","gists_url":"https://api.github.com/users/openforis/gists{/gist_id}","starred_url":"https://api.github.com/users/openforis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openforis/subscriptions","organizations_url":"https://api.github.com/users/openforis/orgs","repos_url":"https://api.github.com/users/openforis/repos","events_url":"https://api.github.com/users/openforis/events{/privacy}","received_events_url":"https://api.github.com/users/openforis/received_events","type":"Organization","site_admin":false},"repo":{"id":139414164,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0MTQxNjQ=","name":"arena","full_name":"openforis/arena","owner":{"login":"openforis","id":1212750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMTI3NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1212750?v=4","gravatar_id":"","url":"https://api.github.com/users/openforis","html_url":"https://github.com/openforis","followers_url":"https://api.github.com/users/openforis/followers","following_url":"https://api.github.com/users/openforis/following{/other_user}","gists_url":"https://api.github.com/users/openforis/gists{/gist_id}","starred_url":"https://api.github.com/users/openforis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openforis/subscriptions","organizations_url":"https://api.github.com/users/openforis/orgs","repos_url":"https://api.github.com/users/openforis/repos","events_url":"https://api.github.com/users/openforis/events{/privacy}","received_events_url":"https://api.github.com/users/openforis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openforis/arena","description":null,"fork":false,"url":"https://api.github.com/repos/openforis/arena","forks_url":"https://api.github.com/repos/openforis/arena/forks","keys_url":"https://api.github.com/repos/openforis/arena/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openforis/arena/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openforis/arena/teams","hooks_url":"https://api.github.com/repos/openforis/arena/hooks","issue_events_url":"https://api.github.com/repos/openforis/arena/issues/events{/number}","events_url":"https://api.github.com/repos/openforis/arena/events","assignees_url":"https://api.github.com/repos/openforis/arena/assignees{/user}","branches_url":"https://api.github.com/repos/openforis/arena/branches{/branch}","tags_url":"https://api.github.com/repos/openforis/arena/tags","blobs_url":"https://api.github.com/repos/openforis/arena/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openforis/arena/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openforis/arena/git/refs{/sha}","trees_url":"https://api.github.com/repos/openforis/arena/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openforis/arena/statuses/{sha}","languages_url":"https://api.github.com/repos/openforis/arena/languages","stargazers_url":"https://api.github.com/repos/openforis/arena/stargazers","contributors_url":"https://api.github.com/repos/openforis/arena/contributors","subscribers_url":"https://api.github.com/repos/openforis/arena/subscribers","subscription_url":"https://api.github.com/repos/openforis/arena/subscription","commits_url":"https://api.github.com/repos/openforis/arena/commits{/sha}","git_commits_url":"https://api.github.com/repos/openforis/arena/git/commits{/sha}","comments_url":"https://api.github.com/repos/openforis/arena/comments{/number}","issue_comment_url":"https://api.github.com/repos/openforis/arena/issues/comments{/number}","contents_url":"https://api.github.com/repos/openforis/arena/contents/{+path}","compare_url":"https://api.github.com/repos/openforis/arena/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openforis/arena/merges","archive_url":"https://api.github.com/repos/openforis/arena/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openforis/arena/downloads","issues_url":"https://api.github.com/repos/openforis/arena/issues{/number}","pulls_url":"https://api.github.com/repos/openforis/arena/pulls{/number}","milestones_url":"https://api.github.com/repos/openforis/arena/milestones{/number}","notifications_url":"https://api.github.com/repos/openforis/arena/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openforis/arena/labels{/name}","releases_url":"https://api.github.com/repos/openforis/arena/releases{/id}","deployments_url":"https://api.github.com/repos/openforis/arena/deployments","created_at":"2018-07-02T08:31:42Z","updated_at":"2018-08-10T13:26:33Z","pushed_at":"2018-08-10T13:30:35Z","git_url":"git://github.com/openforis/arena.git","ssh_url":"git@github.com:openforis/arena.git","clone_url":"https://github.com/openforis/arena.git","svn_url":"https://github.com/openforis/arena","homepage":"http://www.openforis.org","size":1646,"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":"openforis:master","ref":"master","sha":"32f95eee725d07eb7dbd3d5e683962c9fa261412","user":{"login":"openforis","id":1212750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMTI3NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1212750?v=4","gravatar_id":"","url":"https://api.github.com/users/openforis","html_url":"https://github.com/openforis","followers_url":"https://api.github.com/users/openforis/followers","following_url":"https://api.github.com/users/openforis/following{/other_user}","gists_url":"https://api.github.com/users/openforis/gists{/gist_id}","starred_url":"https://api.github.com/users/openforis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openforis/subscriptions","organizations_url":"https://api.github.com/users/openforis/orgs","repos_url":"https://api.github.com/users/openforis/repos","events_url":"https://api.github.com/users/openforis/events{/privacy}","received_events_url":"https://api.github.com/users/openforis/received_events","type":"Organization","site_admin":false},"repo":{"id":139414164,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0MTQxNjQ=","name":"arena","full_name":"openforis/arena","owner":{"login":"openforis","id":1212750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMTI3NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1212750?v=4","gravatar_id":"","url":"https://api.github.com/users/openforis","html_url":"https://github.com/openforis","followers_url":"https://api.github.com/users/openforis/followers","following_url":"https://api.github.com/users/openforis/following{/other_user}","gists_url":"https://api.github.com/users/openforis/gists{/gist_id}","starred_url":"https://api.github.com/users/openforis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openforis/subscriptions","organizations_url":"https://api.github.com/users/openforis/orgs","repos_url":"https://api.github.com/users/openforis/repos","events_url":"https://api.github.com/users/openforis/events{/privacy}","received_events_url":"https://api.github.com/users/openforis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openforis/arena","description":null,"fork":false,"url":"https://api.github.com/repos/openforis/arena","forks_url":"https://api.github.com/repos/openforis/arena/forks","keys_url":"https://api.github.com/repos/openforis/arena/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openforis/arena/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openforis/arena/teams","hooks_url":"https://api.github.com/repos/openforis/arena/hooks","issue_events_url":"https://api.github.com/repos/openforis/arena/issues/events{/number}","events_url":"https://api.github.com/repos/openforis/arena/events","assignees_url":"https://api.github.com/repos/openforis/arena/assignees{/user}","branches_url":"https://api.github.com/repos/openforis/arena/branches{/branch}","tags_url":"https://api.github.com/repos/openforis/arena/tags","blobs_url":"https://api.github.com/repos/openforis/arena/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openforis/arena/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openforis/arena/git/refs{/sha}","trees_url":"https://api.github.com/repos/openforis/arena/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openforis/arena/statuses/{sha}","languages_url":"https://api.github.com/repos/openforis/arena/languages","stargazers_url":"https://api.github.com/repos/openforis/arena/stargazers","contributors_url":"https://api.github.com/repos/openforis/arena/contributors","subscribers_url":"https://api.github.com/repos/openforis/arena/subscribers","subscription_url":"https://api.github.com/repos/openforis/arena/subscription","commits_url":"https://api.github.com/repos/openforis/arena/commits{/sha}","git_commits_url":"https://api.github.com/repos/openforis/arena/git/commits{/sha}","comments_url":"https://api.github.com/repos/openforis/arena/comments{/number}","issue_comment_url":"https://api.github.com/repos/openforis/arena/issues/comments{/number}","contents_url":"https://api.github.com/repos/openforis/arena/contents/{+path}","compare_url":"https://api.github.com/repos/openforis/arena/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openforis/arena/merges","archive_url":"https://api.github.com/repos/openforis/arena/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openforis/arena/downloads","issues_url":"https://api.github.com/repos/openforis/arena/issues{/number}","pulls_url":"https://api.github.com/repos/openforis/arena/pulls{/number}","milestones_url":"https://api.github.com/repos/openforis/arena/milestones{/number}","notifications_url":"https://api.github.com/repos/openforis/arena/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openforis/arena/labels{/name}","releases_url":"https://api.github.com/repos/openforis/arena/releases{/id}","deployments_url":"https://api.github.com/repos/openforis/arena/deployments","created_at":"2018-07-02T08:31:42Z","updated_at":"2018-08-10T13:26:33Z","pushed_at":"2018-08-10T13:30:35Z","git_url":"git://github.com/openforis/arena.git","ssh_url":"git@github.com:openforis/arena.git","clone_url":"https://github.com/openforis/arena.git","svn_url":"https://github.com/openforis/arena","homepage":"http://www.openforis.org","size":1646,"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/openforis/arena/pulls/14"},"html":{"href":"https://github.com/openforis/arena/pull/14"},"issue":{"href":"https://api.github.com/repos/openforis/arena/issues/14"},"comments":{"href":"https://api.github.com/repos/openforis/arena/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/openforis/arena/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/openforis/arena/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openforis/arena/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/openforis/arena/statuses/af4e6e15a2af8db514419a535358fcc8ac5c5acd"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"minotogna"}}