{"action":"created","comment":{"url":"https://api.github.com/repos/GolosChain/prism-service/pulls/comments/237830318","pull_request_review_id":180226533,"id":237830318,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzgzMDMxOA==","diff_hunk":"@@ -70,6 +71,43 @@ class Content extends Abstract {\n         await model.save();\n     }\n \n+    async handlePromoteTransfer({ from, to, amount, memo }) {\n+        let author;\n+        let permlink;\n+        let currency;\n+\n+        if (to !== 'null') {\n+            return;\n+        }\n+\n+        try {\n+            [author, permlink] = memo.slice(1).split('/');\n+\n+            if (!author || !permlink) {\n+                return;\n+            }\n+\n+            currency = to.split(' ')[1];","path":"src/controllers/prism/Content.js","position":58,"original_position":58,"commit_id":"4cbb1b6d77ffbd2e1a45a59d0dc0edf07b1a6c4f","original_commit_id":"4cbb1b6d77ffbd2e1a45a59d0dc0edf07b1a6c4f","user":{"login":"beautyfree","id":656531,"node_id":"MDQ6VXNlcjY1NjUzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/656531?v=4","gravatar_id":"","url":"https://api.github.com/users/beautyfree","html_url":"https://github.com/beautyfree","followers_url":"https://api.github.com/users/beautyfree/followers","following_url":"https://api.github.com/users/beautyfree/following{/other_user}","gists_url":"https://api.github.com/users/beautyfree/gists{/gist_id}","starred_url":"https://api.github.com/users/beautyfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beautyfree/subscriptions","organizations_url":"https://api.github.com/users/beautyfree/orgs","repos_url":"https://api.github.com/users/beautyfree/repos","events_url":"https://api.github.com/users/beautyfree/events{/privacy}","received_events_url":"https://api.github.com/users/beautyfree/received_events","type":"User","site_admin":false},"body":"currency используется только в этом блоке поэтому можно здесь объявить const","created_at":"2018-11-30T11:30:35Z","updated_at":"2018-11-30T11:31:48Z","html_url":"https://github.com/GolosChain/prism-service/pull/44#discussion_r237830318","pull_request_url":"https://api.github.com/repos/GolosChain/prism-service/pulls/44","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/GolosChain/prism-service/pulls/comments/237830318"},"html":{"href":"https://github.com/GolosChain/prism-service/pull/44#discussion_r237830318"},"pull_request":{"href":"https://api.github.com/repos/GolosChain/prism-service/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/GolosChain/prism-service/pulls/44","id":233986862,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzOTg2ODYy","html_url":"https://github.com/GolosChain/prism-service/pull/44","diff_url":"https://github.com/GolosChain/prism-service/pull/44.diff","patch_url":"https://github.com/GolosChain/prism-service/pull/44.patch","issue_url":"https://api.github.com/repos/GolosChain/prism-service/issues/44","number":44,"state":"open","locked":false,"title":"Promote calc.","user":{"login":"Format-X22","id":11276553,"node_id":"MDQ6VXNlcjExMjc2NTUz","avatar_url":"https://avatars0.githubusercontent.com/u/11276553?v=4","gravatar_id":"","url":"https://api.github.com/users/Format-X22","html_url":"https://github.com/Format-X22","followers_url":"https://api.github.com/users/Format-X22/followers","following_url":"https://api.github.com/users/Format-X22/following{/other_user}","gists_url":"https://api.github.com/users/Format-X22/gists{/gist_id}","starred_url":"https://api.github.com/users/Format-X22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Format-X22/subscriptions","organizations_url":"https://api.github.com/users/Format-X22/orgs","repos_url":"https://api.github.com/users/Format-X22/repos","events_url":"https://api.github.com/users/Format-X22/events{/privacy}","received_events_url":"https://api.github.com/users/Format-X22/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-27T16:54:24Z","updated_at":"2018-11-30T11:31:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ec052e61c28a6ded02fa25b53dc2877d82000ea","assignee":null,"assignees":[],"requested_reviewers":[{"login":"b1acksun","id":3322340,"node_id":"MDQ6VXNlcjMzMjIzNDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3322340?v=4","gravatar_id":"","url":"https://api.github.com/users/b1acksun","html_url":"https://github.com/b1acksun","followers_url":"https://api.github.com/users/b1acksun/followers","following_url":"https://api.github.com/users/b1acksun/following{/other_user}","gists_url":"https://api.github.com/users/b1acksun/gists{/gist_id}","starred_url":"https://api.github.com/users/b1acksun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b1acksun/subscriptions","organizations_url":"https://api.github.com/users/b1acksun/orgs","repos_url":"https://api.github.com/users/b1acksun/repos","events_url":"https://api.github.com/users/b1acksun/events{/privacy}","received_events_url":"https://api.github.com/users/b1acksun/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GolosChain/prism-service/pulls/44/commits","review_comments_url":"https://api.github.com/repos/GolosChain/prism-service/pulls/44/comments","review_comment_url":"https://api.github.com/repos/GolosChain/prism-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GolosChain/prism-service/issues/44/comments","statuses_url":"https://api.github.com/repos/GolosChain/prism-service/statuses/4cbb1b6d77ffbd2e1a45a59d0dc0edf07b1a6c4f","head":{"label":"GolosChain:develop","ref":"develop","sha":"4cbb1b6d77ffbd2e1a45a59d0dc0edf07b1a6c4f","user":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"repo":{"id":149156514,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNTY1MTQ=","name":"prism-service","full_name":"GolosChain/prism-service","private":false,"owner":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GolosChain/prism-service","description":null,"fork":false,"url":"https://api.github.com/repos/GolosChain/prism-service","forks_url":"https://api.github.com/repos/GolosChain/prism-service/forks","keys_url":"https://api.github.com/repos/GolosChain/prism-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GolosChain/prism-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GolosChain/prism-service/teams","hooks_url":"https://api.github.com/repos/GolosChain/prism-service/hooks","issue_events_url":"https://api.github.com/repos/GolosChain/prism-service/issues/events{/number}","events_url":"https://api.github.com/repos/GolosChain/prism-service/events","assignees_url":"https://api.github.com/repos/GolosChain/prism-service/assignees{/user}","branches_url":"https://api.github.com/repos/GolosChain/prism-service/branches{/branch}","tags_url":"https://api.github.com/repos/GolosChain/prism-service/tags","blobs_url":"https://api.github.com/repos/GolosChain/prism-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GolosChain/prism-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GolosChain/prism-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/GolosChain/prism-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GolosChain/prism-service/statuses/{sha}","languages_url":"https://api.github.com/repos/GolosChain/prism-service/languages","stargazers_url":"https://api.github.com/repos/GolosChain/prism-service/stargazers","contributors_url":"https://api.github.com/repos/GolosChain/prism-service/contributors","subscribers_url":"https://api.github.com/repos/GolosChain/prism-service/subscribers","subscription_url":"https://api.github.com/repos/GolosChain/prism-service/subscription","commits_url":"https://api.github.com/repos/GolosChain/prism-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/GolosChain/prism-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/GolosChain/prism-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/GolosChain/prism-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/GolosChain/prism-service/contents/{+path}","compare_url":"https://api.github.com/repos/GolosChain/prism-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GolosChain/prism-service/merges","archive_url":"https://api.github.com/repos/GolosChain/prism-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GolosChain/prism-service/downloads","issues_url":"https://api.github.com/repos/GolosChain/prism-service/issues{/number}","pulls_url":"https://api.github.com/repos/GolosChain/prism-service/pulls{/number}","milestones_url":"https://api.github.com/repos/GolosChain/prism-service/milestones{/number}","notifications_url":"https://api.github.com/repos/GolosChain/prism-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GolosChain/prism-service/labels{/name}","releases_url":"https://api.github.com/repos/GolosChain/prism-service/releases{/id}","deployments_url":"https://api.github.com/repos/GolosChain/prism-service/deployments","created_at":"2018-09-17T16:39:33Z","updated_at":"2018-11-26T11:36:11Z","pushed_at":"2018-11-30T10:45:28Z","git_url":"git://github.com/GolosChain/prism-service.git","ssh_url":"git@github.com:GolosChain/prism-service.git","clone_url":"https://github.com/GolosChain/prism-service.git","svn_url":"https://github.com/GolosChain/prism-service","homepage":null,"size":151,"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":19,"license":null,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"GolosChain:master","ref":"master","sha":"4b19b2fbffe525a4f0aeadaba69e14972f279143","user":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"repo":{"id":149156514,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNTY1MTQ=","name":"prism-service","full_name":"GolosChain/prism-service","private":false,"owner":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GolosChain/prism-service","description":null,"fork":false,"url":"https://api.github.com/repos/GolosChain/prism-service","forks_url":"https://api.github.com/repos/GolosChain/prism-service/forks","keys_url":"https://api.github.com/repos/GolosChain/prism-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GolosChain/prism-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GolosChain/prism-service/teams","hooks_url":"https://api.github.com/repos/GolosChain/prism-service/hooks","issue_events_url":"https://api.github.com/repos/GolosChain/prism-service/issues/events{/number}","events_url":"https://api.github.com/repos/GolosChain/prism-service/events","assignees_url":"https://api.github.com/repos/GolosChain/prism-service/assignees{/user}","branches_url":"https://api.github.com/repos/GolosChain/prism-service/branches{/branch}","tags_url":"https://api.github.com/repos/GolosChain/prism-service/tags","blobs_url":"https://api.github.com/repos/GolosChain/prism-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GolosChain/prism-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GolosChain/prism-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/GolosChain/prism-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GolosChain/prism-service/statuses/{sha}","languages_url":"https://api.github.com/repos/GolosChain/prism-service/languages","stargazers_url":"https://api.github.com/repos/GolosChain/prism-service/stargazers","contributors_url":"https://api.github.com/repos/GolosChain/prism-service/contributors","subscribers_url":"https://api.github.com/repos/GolosChain/prism-service/subscribers","subscription_url":"https://api.github.com/repos/GolosChain/prism-service/subscription","commits_url":"https://api.github.com/repos/GolosChain/prism-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/GolosChain/prism-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/GolosChain/prism-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/GolosChain/prism-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/GolosChain/prism-service/contents/{+path}","compare_url":"https://api.github.com/repos/GolosChain/prism-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GolosChain/prism-service/merges","archive_url":"https://api.github.com/repos/GolosChain/prism-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GolosChain/prism-service/downloads","issues_url":"https://api.github.com/repos/GolosChain/prism-service/issues{/number}","pulls_url":"https://api.github.com/repos/GolosChain/prism-service/pulls{/number}","milestones_url":"https://api.github.com/repos/GolosChain/prism-service/milestones{/number}","notifications_url":"https://api.github.com/repos/GolosChain/prism-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GolosChain/prism-service/labels{/name}","releases_url":"https://api.github.com/repos/GolosChain/prism-service/releases{/id}","deployments_url":"https://api.github.com/repos/GolosChain/prism-service/deployments","created_at":"2018-09-17T16:39:33Z","updated_at":"2018-11-26T11:36:11Z","pushed_at":"2018-11-30T10:45:28Z","git_url":"git://github.com/GolosChain/prism-service.git","ssh_url":"git@github.com:GolosChain/prism-service.git","clone_url":"https://github.com/GolosChain/prism-service.git","svn_url":"https://github.com/GolosChain/prism-service","homepage":null,"size":151,"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":19,"license":null,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GolosChain/prism-service/pulls/44"},"html":{"href":"https://github.com/GolosChain/prism-service/pull/44"},"issue":{"href":"https://api.github.com/repos/GolosChain/prism-service/issues/44"},"comments":{"href":"https://api.github.com/repos/GolosChain/prism-service/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/GolosChain/prism-service/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/GolosChain/prism-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GolosChain/prism-service/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/GolosChain/prism-service/statuses/4cbb1b6d77ffbd2e1a45a59d0dc0edf07b1a6c4f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"beautyfree"}}