{"action":"created","comment":{"url":"https://api.github.com/repos/anyTV/api.tm/pulls/comments/45748126","id":45748126,"diff_hunk":"@@ -0,0 +1,37 @@\n+'use strict';\n+\n+const mysql   = require('anytv-node-mysql');\n+const winston = require('winston');\n+const util = require(__dirname + '/../helpers/util');\n+\n+\n+exports.partner_status = (req, res, next) => {\n+    function start () {\n+        if (!req.params.id) {\n+            return next('id is missing');\n+        }\n+\n+        mysql.use('dashboard_db')\n+            .query(\n+                'SELECT linked FROM channels WHERE channel_id = ? LIMIT 1',\n+                [req.params.id],\n+                send_response\n+            )\n+            .end();\n+    }\n+\n+    function send_response (err, data) {\n+        if (err) {\n+            winston.error(err.message);","path":"controllers/partner.js","position":25,"original_position":25,"commit_id":"7a4bd46526cded30060037c3af4cf696f7244018","original_commit_id":"7a4bd46526cded30060037c3af4cf696f7244018","user":{"login":"ravenjohn","id":3425521,"avatar_url":"https://avatars.githubusercontent.com/u/3425521?v=3","gravatar_id":"","url":"https://api.github.com/users/ravenjohn","html_url":"https://github.com/ravenjohn","followers_url":"https://api.github.com/users/ravenjohn/followers","following_url":"https://api.github.com/users/ravenjohn/following{/other_user}","gists_url":"https://api.github.com/users/ravenjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/ravenjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravenjohn/subscriptions","organizations_url":"https://api.github.com/users/ravenjohn/orgs","repos_url":"https://api.github.com/users/ravenjohn/repos","events_url":"https://api.github.com/users/ravenjohn/events{/privacy}","received_events_url":"https://api.github.com/users/ravenjohn/received_events","type":"User","site_admin":false},"body":"same. add more info in log","created_at":"2015-11-24T15:19:08Z","updated_at":"2015-11-24T15:19:08Z","html_url":"https://github.com/anyTV/api.tm/pull/1#discussion_r45748126","pull_request_url":"https://api.github.com/repos/anyTV/api.tm/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/anyTV/api.tm/pulls/comments/45748126"},"html":{"href":"https://github.com/anyTV/api.tm/pull/1#discussion_r45748126"},"pull_request":{"href":"https://api.github.com/repos/anyTV/api.tm/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/anyTV/api.tm/pulls/1","id":51639016,"html_url":"https://github.com/anyTV/api.tm/pull/1","diff_url":"https://github.com/anyTV/api.tm/pull/1.diff","patch_url":"https://github.com/anyTV/api.tm/pull/1.patch","issue_url":"https://api.github.com/repos/anyTV/api.tm/issues/1","number":1,"state":"open","locked":false,"title":"Feature/music endpoints","user":{"login":"jvmsangkal","id":13127700,"avatar_url":"https://avatars.githubusercontent.com/u/13127700?v=3","gravatar_id":"","url":"https://api.github.com/users/jvmsangkal","html_url":"https://github.com/jvmsangkal","followers_url":"https://api.github.com/users/jvmsangkal/followers","following_url":"https://api.github.com/users/jvmsangkal/following{/other_user}","gists_url":"https://api.github.com/users/jvmsangkal/gists{/gist_id}","starred_url":"https://api.github.com/users/jvmsangkal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvmsangkal/subscriptions","organizations_url":"https://api.github.com/users/jvmsangkal/orgs","repos_url":"https://api.github.com/users/jvmsangkal/repos","events_url":"https://api.github.com/users/jvmsangkal/events{/privacy}","received_events_url":"https://api.github.com/users/jvmsangkal/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-24T10:09:26Z","updated_at":"2015-11-24T15:19:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12c726f95b230c32bff73469b5dbc363f464c60c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/anyTV/api.tm/pulls/1/commits","review_comments_url":"https://api.github.com/repos/anyTV/api.tm/pulls/1/comments","review_comment_url":"https://api.github.com/repos/anyTV/api.tm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anyTV/api.tm/issues/1/comments","statuses_url":"https://api.github.com/repos/anyTV/api.tm/statuses/7a4bd46526cded30060037c3af4cf696f7244018","head":{"label":"anyTV:feature/music-endpoints","ref":"feature/music-endpoints","sha":"7a4bd46526cded30060037c3af4cf696f7244018","user":{"login":"anyTV","id":3164673,"avatar_url":"https://avatars.githubusercontent.com/u/3164673?v=3","gravatar_id":"","url":"https://api.github.com/users/anyTV","html_url":"https://github.com/anyTV","followers_url":"https://api.github.com/users/anyTV/followers","following_url":"https://api.github.com/users/anyTV/following{/other_user}","gists_url":"https://api.github.com/users/anyTV/gists{/gist_id}","starred_url":"https://api.github.com/users/anyTV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anyTV/subscriptions","organizations_url":"https://api.github.com/users/anyTV/orgs","repos_url":"https://api.github.com/users/anyTV/repos","events_url":"https://api.github.com/users/anyTV/events{/privacy}","received_events_url":"https://api.github.com/users/anyTV/received_events","type":"Organization","site_admin":false},"repo":{"id":46762618,"name":"api.tm","full_name":"anyTV/api.tm","owner":{"login":"anyTV","id":3164673,"avatar_url":"https://avatars.githubusercontent.com/u/3164673?v=3","gravatar_id":"","url":"https://api.github.com/users/anyTV","html_url":"https://github.com/anyTV","followers_url":"https://api.github.com/users/anyTV/followers","following_url":"https://api.github.com/users/anyTV/following{/other_user}","gists_url":"https://api.github.com/users/anyTV/gists{/gist_id}","starred_url":"https://api.github.com/users/anyTV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anyTV/subscriptions","organizations_url":"https://api.github.com/users/anyTV/orgs","repos_url":"https://api.github.com/users/anyTV/repos","events_url":"https://api.github.com/users/anyTV/events{/privacy}","received_events_url":"https://api.github.com/users/anyTV/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anyTV/api.tm","description":"","fork":false,"url":"https://api.github.com/repos/anyTV/api.tm","forks_url":"https://api.github.com/repos/anyTV/api.tm/forks","keys_url":"https://api.github.com/repos/anyTV/api.tm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anyTV/api.tm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anyTV/api.tm/teams","hooks_url":"https://api.github.com/repos/anyTV/api.tm/hooks","issue_events_url":"https://api.github.com/repos/anyTV/api.tm/issues/events{/number}","events_url":"https://api.github.com/repos/anyTV/api.tm/events","assignees_url":"https://api.github.com/repos/anyTV/api.tm/assignees{/user}","branches_url":"https://api.github.com/repos/anyTV/api.tm/branches{/branch}","tags_url":"https://api.github.com/repos/anyTV/api.tm/tags","blobs_url":"https://api.github.com/repos/anyTV/api.tm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anyTV/api.tm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anyTV/api.tm/git/refs{/sha}","trees_url":"https://api.github.com/repos/anyTV/api.tm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anyTV/api.tm/statuses/{sha}","languages_url":"https://api.github.com/repos/anyTV/api.tm/languages","stargazers_url":"https://api.github.com/repos/anyTV/api.tm/stargazers","contributors_url":"https://api.github.com/repos/anyTV/api.tm/contributors","subscribers_url":"https://api.github.com/repos/anyTV/api.tm/subscribers","subscription_url":"https://api.github.com/repos/anyTV/api.tm/subscription","commits_url":"https://api.github.com/repos/anyTV/api.tm/commits{/sha}","git_commits_url":"https://api.github.com/repos/anyTV/api.tm/git/commits{/sha}","comments_url":"https://api.github.com/repos/anyTV/api.tm/comments{/number}","issue_comment_url":"https://api.github.com/repos/anyTV/api.tm/issues/comments{/number}","contents_url":"https://api.github.com/repos/anyTV/api.tm/contents/{+path}","compare_url":"https://api.github.com/repos/anyTV/api.tm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anyTV/api.tm/merges","archive_url":"https://api.github.com/repos/anyTV/api.tm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anyTV/api.tm/downloads","issues_url":"https://api.github.com/repos/anyTV/api.tm/issues{/number}","pulls_url":"https://api.github.com/repos/anyTV/api.tm/pulls{/number}","milestones_url":"https://api.github.com/repos/anyTV/api.tm/milestones{/number}","notifications_url":"https://api.github.com/repos/anyTV/api.tm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anyTV/api.tm/labels{/name}","releases_url":"https://api.github.com/repos/anyTV/api.tm/releases{/id}","created_at":"2015-11-24T02:46:57Z","updated_at":"2015-11-24T08:13:51Z","pushed_at":"2015-11-24T10:09:27Z","git_url":"git://github.com/anyTV/api.tm.git","ssh_url":"git@github.com:anyTV/api.tm.git","clone_url":"https://github.com/anyTV/api.tm.git","svn_url":"https://github.com/anyTV/api.tm","homepage":null,"size":65,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"anyTV:master","ref":"master","sha":"377de8a9878755bda4e1b189ff475e1d0fc04895","user":{"login":"anyTV","id":3164673,"avatar_url":"https://avatars.githubusercontent.com/u/3164673?v=3","gravatar_id":"","url":"https://api.github.com/users/anyTV","html_url":"https://github.com/anyTV","followers_url":"https://api.github.com/users/anyTV/followers","following_url":"https://api.github.com/users/anyTV/following{/other_user}","gists_url":"https://api.github.com/users/anyTV/gists{/gist_id}","starred_url":"https://api.github.com/users/anyTV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anyTV/subscriptions","organizations_url":"https://api.github.com/users/anyTV/orgs","repos_url":"https://api.github.com/users/anyTV/repos","events_url":"https://api.github.com/users/anyTV/events{/privacy}","received_events_url":"https://api.github.com/users/anyTV/received_events","type":"Organization","site_admin":false},"repo":{"id":46762618,"name":"api.tm","full_name":"anyTV/api.tm","owner":{"login":"anyTV","id":3164673,"avatar_url":"https://avatars.githubusercontent.com/u/3164673?v=3","gravatar_id":"","url":"https://api.github.com/users/anyTV","html_url":"https://github.com/anyTV","followers_url":"https://api.github.com/users/anyTV/followers","following_url":"https://api.github.com/users/anyTV/following{/other_user}","gists_url":"https://api.github.com/users/anyTV/gists{/gist_id}","starred_url":"https://api.github.com/users/anyTV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anyTV/subscriptions","organizations_url":"https://api.github.com/users/anyTV/orgs","repos_url":"https://api.github.com/users/anyTV/repos","events_url":"https://api.github.com/users/anyTV/events{/privacy}","received_events_url":"https://api.github.com/users/anyTV/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anyTV/api.tm","description":"","fork":false,"url":"https://api.github.com/repos/anyTV/api.tm","forks_url":"https://api.github.com/repos/anyTV/api.tm/forks","keys_url":"https://api.github.com/repos/anyTV/api.tm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anyTV/api.tm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anyTV/api.tm/teams","hooks_url":"https://api.github.com/repos/anyTV/api.tm/hooks","issue_events_url":"https://api.github.com/repos/anyTV/api.tm/issues/events{/number}","events_url":"https://api.github.com/repos/anyTV/api.tm/events","assignees_url":"https://api.github.com/repos/anyTV/api.tm/assignees{/user}","branches_url":"https://api.github.com/repos/anyTV/api.tm/branches{/branch}","tags_url":"https://api.github.com/repos/anyTV/api.tm/tags","blobs_url":"https://api.github.com/repos/anyTV/api.tm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anyTV/api.tm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anyTV/api.tm/git/refs{/sha}","trees_url":"https://api.github.com/repos/anyTV/api.tm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anyTV/api.tm/statuses/{sha}","languages_url":"https://api.github.com/repos/anyTV/api.tm/languages","stargazers_url":"https://api.github.com/repos/anyTV/api.tm/stargazers","contributors_url":"https://api.github.com/repos/anyTV/api.tm/contributors","subscribers_url":"https://api.github.com/repos/anyTV/api.tm/subscribers","subscription_url":"https://api.github.com/repos/anyTV/api.tm/subscription","commits_url":"https://api.github.com/repos/anyTV/api.tm/commits{/sha}","git_commits_url":"https://api.github.com/repos/anyTV/api.tm/git/commits{/sha}","comments_url":"https://api.github.com/repos/anyTV/api.tm/comments{/number}","issue_comment_url":"https://api.github.com/repos/anyTV/api.tm/issues/comments{/number}","contents_url":"https://api.github.com/repos/anyTV/api.tm/contents/{+path}","compare_url":"https://api.github.com/repos/anyTV/api.tm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anyTV/api.tm/merges","archive_url":"https://api.github.com/repos/anyTV/api.tm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anyTV/api.tm/downloads","issues_url":"https://api.github.com/repos/anyTV/api.tm/issues{/number}","pulls_url":"https://api.github.com/repos/anyTV/api.tm/pulls{/number}","milestones_url":"https://api.github.com/repos/anyTV/api.tm/milestones{/number}","notifications_url":"https://api.github.com/repos/anyTV/api.tm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anyTV/api.tm/labels{/name}","releases_url":"https://api.github.com/repos/anyTV/api.tm/releases{/id}","created_at":"2015-11-24T02:46:57Z","updated_at":"2015-11-24T08:13:51Z","pushed_at":"2015-11-24T10:09:27Z","git_url":"git://github.com/anyTV/api.tm.git","ssh_url":"git@github.com:anyTV/api.tm.git","clone_url":"https://github.com/anyTV/api.tm.git","svn_url":"https://github.com/anyTV/api.tm","homepage":null,"size":65,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anyTV/api.tm/pulls/1"},"html":{"href":"https://github.com/anyTV/api.tm/pull/1"},"issue":{"href":"https://api.github.com/repos/anyTV/api.tm/issues/1"},"comments":{"href":"https://api.github.com/repos/anyTV/api.tm/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/anyTV/api.tm/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/anyTV/api.tm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anyTV/api.tm/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/anyTV/api.tm/statuses/7a4bd46526cded30060037c3af4cf696f7244018"}}}}