{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/comments/182679083","pull_request_review_id":113521570,"id":182679083,"diff_hunk":"@@ -12,7 +12,36 @@ function getRouter() {\n             var manager = new Manager(db, request.user);\n \n             var code = request.params.code;\n-            var filter = { 'items.item.code': code, '_deleted' : false };\n+            var filter = { 'items.itemsDetails.code': code, '_deleted' : false };\n+\n+            manager.getDiscountByFilter(filter)\n+                .then(result => {\n+                    var data = result;\n+                    var result = resultFormatter.ok(apiVersion, 200, data);","path":"src/routers/v1/inventory/master/discount-filter-router.js","position":10,"original_position":10,"commit_id":"24bb7884327e749d0328b3a438d023abb729688d","original_commit_id":"24bb7884327e749d0328b3a438d023abb729688d","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'result' is already defined.","created_at":"2018-04-19T09:03:54Z","updated_at":"2018-04-19T09:03:54Z","html_url":"https://github.com/danliris/bateeq-inventory-api/pull/158#discussion_r182679083","pull_request_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/comments/182679083"},"html":{"href":"https://github.com/danliris/bateeq-inventory-api/pull/158#discussion_r182679083"},"pull_request":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158","id":182709837,"html_url":"https://github.com/danliris/bateeq-inventory-api/pull/158","diff_url":"https://github.com/danliris/bateeq-inventory-api/pull/158.diff","patch_url":"https://github.com/danliris/bateeq-inventory-api/pull/158.patch","issue_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/158","number":158,"state":"open","locked":false,"title":"Master discount","user":{"login":"novalinahtb","id":38346495,"avatar_url":"https://avatars2.githubusercontent.com/u/38346495?v=4","gravatar_id":"","url":"https://api.github.com/users/novalinahtb","html_url":"https://github.com/novalinahtb","followers_url":"https://api.github.com/users/novalinahtb/followers","following_url":"https://api.github.com/users/novalinahtb/following{/other_user}","gists_url":"https://api.github.com/users/novalinahtb/gists{/gist_id}","starred_url":"https://api.github.com/users/novalinahtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novalinahtb/subscriptions","organizations_url":"https://api.github.com/users/novalinahtb/orgs","repos_url":"https://api.github.com/users/novalinahtb/repos","events_url":"https://api.github.com/users/novalinahtb/events{/privacy}","received_events_url":"https://api.github.com/users/novalinahtb/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-19T09:03:44Z","updated_at":"2018-04-19T09:03:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e26660190e6e64cb9d95b93c8b39a361cfb60efa","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158/commits","review_comments_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158/comments","review_comment_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/158/comments","statuses_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/statuses/24bb7884327e749d0328b3a438d023abb729688d","head":{"label":"danliris:dev","ref":"dev","sha":"24bb7884327e749d0328b3a438d023abb729688d","user":{"login":"danliris","id":20855729,"avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":62210070,"name":"bateeq-inventory-api","full_name":"danliris/bateeq-inventory-api","owner":{"login":"danliris","id":20855729,"avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/bateeq-inventory-api","description":"RESTful api for bateeq inventory","fork":false,"url":"https://api.github.com/repos/danliris/bateeq-inventory-api","forks_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/forks","keys_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/teams","hooks_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/hooks","issue_events_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/events","assignees_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/tags","blobs_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/languages","stargazers_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/stargazers","contributors_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/contributors","subscribers_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/subscribers","subscription_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/subscription","commits_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/merges","archive_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/downloads","issues_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/labels{/name}","releases_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/deployments","created_at":"2016-06-29T08:39:52Z","updated_at":"2018-03-29T07:00:04Z","pushed_at":"2018-04-19T09:03:44Z","git_url":"git://github.com/danliris/bateeq-inventory-api.git","ssh_url":"git@github.com:danliris/bateeq-inventory-api.git","clone_url":"https://github.com/danliris/bateeq-inventory-api.git","svn_url":"https://github.com/danliris/bateeq-inventory-api","homepage":null,"size":365,"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":12,"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"},"forks":12,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"danliris:uat","ref":"uat","sha":"2a3c00a4cfa6a586ec72b390199227fa4efb57cc","user":{"login":"danliris","id":20855729,"avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":62210070,"name":"bateeq-inventory-api","full_name":"danliris/bateeq-inventory-api","owner":{"login":"danliris","id":20855729,"avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/bateeq-inventory-api","description":"RESTful api for bateeq inventory","fork":false,"url":"https://api.github.com/repos/danliris/bateeq-inventory-api","forks_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/forks","keys_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/teams","hooks_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/hooks","issue_events_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/events","assignees_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/tags","blobs_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/languages","stargazers_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/stargazers","contributors_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/contributors","subscribers_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/subscribers","subscription_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/subscription","commits_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/merges","archive_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/downloads","issues_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/labels{/name}","releases_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/deployments","created_at":"2016-06-29T08:39:52Z","updated_at":"2018-03-29T07:00:04Z","pushed_at":"2018-04-19T09:03:44Z","git_url":"git://github.com/danliris/bateeq-inventory-api.git","ssh_url":"git@github.com:danliris/bateeq-inventory-api.git","clone_url":"https://github.com/danliris/bateeq-inventory-api.git","svn_url":"https://github.com/danliris/bateeq-inventory-api","homepage":null,"size":365,"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":12,"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"},"forks":12,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158"},"html":{"href":"https://github.com/danliris/bateeq-inventory-api/pull/158"},"issue":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/158"},"comments":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/statuses/24bb7884327e749d0328b3a438d023abb729688d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}