{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/comments/167790550","pull_request_review_id":96057837,"id":167790550,"diff_hunk":"@@ -0,0 +1,96 @@\n+var Router = require('restify-router').Router;\n+var db = require(\"../../../../db\");\n+var PurchaseOrderExternalManager = require(\"bateeq-module\").purchasing.PurchasingOrderExternalManager;\n+var resultFormatter = require(\"../../../../result-formatter\");\n+var passport = require('../../../../passports/jwt-passport');\n+const apiVersion = '1.0.0';\n+var ObjectId = require(\"mongodb\").ObjectId;\n+\n+var BateeqModels = require('bateeq-models');\n+var poStatusEnum = BateeqModels.purchasing.enum.PurchaseOrderStatus;\n+\n+function getRouter() {\n+    var router = new Router();\n+    router.get(\"/\", passport, (request, response, next) => {","path":"src/routers/v1/purchasing/purchase-order-external/purchase-order-external-posted-router.js","position":14,"original_position":14,"commit_id":"2cf0d1cd4b1d8e61dcac074b23b5701d4501dce3","original_commit_id":"2cf0d1cd4b1d8e61dcac074b23b5701d4501dce3","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":"'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').","created_at":"2018-02-13T08:36:17Z","updated_at":"2018-02-13T08:36:17Z","html_url":"https://github.com/danliris/bateeq-inventory-api/pull/139#discussion_r167790550","pull_request_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/139","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/comments/167790550"},"html":{"href":"https://github.com/danliris/bateeq-inventory-api/pull/139#discussion_r167790550"},"pull_request":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/139","id":168781988,"html_url":"https://github.com/danliris/bateeq-inventory-api/pull/139","diff_url":"https://github.com/danliris/bateeq-inventory-api/pull/139.diff","patch_url":"https://github.com/danliris/bateeq-inventory-api/pull/139.patch","issue_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/139","number":139,"state":"open","locked":false,"title":"update end point for delivery order","user":{"login":"AchmadSetiaji","id":28553586,"avatar_url":"https://avatars0.githubusercontent.com/u/28553586?v=4","gravatar_id":"","url":"https://api.github.com/users/AchmadSetiaji","html_url":"https://github.com/AchmadSetiaji","followers_url":"https://api.github.com/users/AchmadSetiaji/followers","following_url":"https://api.github.com/users/AchmadSetiaji/following{/other_user}","gists_url":"https://api.github.com/users/AchmadSetiaji/gists{/gist_id}","starred_url":"https://api.github.com/users/AchmadSetiaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AchmadSetiaji/subscriptions","organizations_url":"https://api.github.com/users/AchmadSetiaji/orgs","repos_url":"https://api.github.com/users/AchmadSetiaji/repos","events_url":"https://api.github.com/users/AchmadSetiaji/events{/privacy}","received_events_url":"https://api.github.com/users/AchmadSetiaji/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-13T08:36:07Z","updated_at":"2018-02-13T08:36:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e2f9eabaf0e7fb33abd67aa580d7deb1d52f259","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/139/commits","review_comments_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/139/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/139/comments","statuses_url":"https://api.github.com/repos/danliris/bateeq-inventory-api/statuses/2cf0d1cd4b1d8e61dcac074b23b5701d4501dce3","head":{"label":"AchmadSetiaji:dev","ref":"dev","sha":"2cf0d1cd4b1d8e61dcac074b23b5701d4501dce3","user":{"login":"AchmadSetiaji","id":28553586,"avatar_url":"https://avatars0.githubusercontent.com/u/28553586?v=4","gravatar_id":"","url":"https://api.github.com/users/AchmadSetiaji","html_url":"https://github.com/AchmadSetiaji","followers_url":"https://api.github.com/users/AchmadSetiaji/followers","following_url":"https://api.github.com/users/AchmadSetiaji/following{/other_user}","gists_url":"https://api.github.com/users/AchmadSetiaji/gists{/gist_id}","starred_url":"https://api.github.com/users/AchmadSetiaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AchmadSetiaji/subscriptions","organizations_url":"https://api.github.com/users/AchmadSetiaji/orgs","repos_url":"https://api.github.com/users/AchmadSetiaji/repos","events_url":"https://api.github.com/users/AchmadSetiaji/events{/privacy}","received_events_url":"https://api.github.com/users/AchmadSetiaji/received_events","type":"User","site_admin":false},"repo":{"id":103560172,"name":"bateeq-inventory-api","full_name":"AchmadSetiaji/bateeq-inventory-api","owner":{"login":"AchmadSetiaji","id":28553586,"avatar_url":"https://avatars0.githubusercontent.com/u/28553586?v=4","gravatar_id":"","url":"https://api.github.com/users/AchmadSetiaji","html_url":"https://github.com/AchmadSetiaji","followers_url":"https://api.github.com/users/AchmadSetiaji/followers","following_url":"https://api.github.com/users/AchmadSetiaji/following{/other_user}","gists_url":"https://api.github.com/users/AchmadSetiaji/gists{/gist_id}","starred_url":"https://api.github.com/users/AchmadSetiaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AchmadSetiaji/subscriptions","organizations_url":"https://api.github.com/users/AchmadSetiaji/orgs","repos_url":"https://api.github.com/users/AchmadSetiaji/repos","events_url":"https://api.github.com/users/AchmadSetiaji/events{/privacy}","received_events_url":"https://api.github.com/users/AchmadSetiaji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AchmadSetiaji/bateeq-inventory-api","description":"RESTful api for bateeq inventory","fork":true,"url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api","forks_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/forks","keys_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/teams","hooks_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/hooks","issue_events_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/issues/events{/number}","events_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/events","assignees_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/assignees{/user}","branches_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/branches{/branch}","tags_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/tags","blobs_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/statuses/{sha}","languages_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/languages","stargazers_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/stargazers","contributors_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/contributors","subscribers_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/subscribers","subscription_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/subscription","commits_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/contents/{+path}","compare_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/merges","archive_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/downloads","issues_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/issues{/number}","pulls_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/pulls{/number}","milestones_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/milestones{/number}","notifications_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/labels{/name}","releases_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/releases{/id}","deployments_url":"https://api.github.com/repos/AchmadSetiaji/bateeq-inventory-api/deployments","created_at":"2017-09-14T17:13:05Z","updated_at":"2017-09-14T17:13:07Z","pushed_at":"2018-02-13T08:35:32Z","git_url":"git://github.com/AchmadSetiaji/bateeq-inventory-api.git","ssh_url":"git@github.com:AchmadSetiaji/bateeq-inventory-api.git","clone_url":"https://github.com/AchmadSetiaji/bateeq-inventory-api.git","svn_url":"https://github.com/AchmadSetiaji/bateeq-inventory-api","homepage":null,"size":332,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"danliris:dev","ref":"dev","sha":"9d89e210afc336ebf38145dac559886d947ed1a3","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":"2016-08-08T03:17:10Z","pushed_at":"2018-02-13T08:36:07Z","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":337,"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/139"},"html":{"href":"https://github.com/danliris/bateeq-inventory-api/pull/139"},"issue":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/139"},"comments":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/pulls/139/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/139/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/bateeq-inventory-api/statuses/2cf0d1cd4b1d8e61dcac074b23b5701d4501dce3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}