{"action":"created","comment":{"url":"https://api.github.com/repos/trunk-studio/trademuch/pulls/comments/62966562","id":62966562,"diff_hunk":"@@ -190,18 +191,39 @@ module.exports = {\n           'type': 'public'\n         });\n \n-        sails.log.info('RoomService.public:user=>', user.username);\n+        sails.log.info('ChatController.public:user=>', user);\n \n-        sails.sockets.broadcast(postId, \"public\", {\n+        await sails.sockets.broadcast(postId, \"public\", {\n           'user': user,\n           'content': content\n         }, req);\n \n-        return res.ok({\n-          chat,\n-          user,\n-          message: 'user\\'' + user.username + '\\' says ' + content + ' to room uuid ' + postId\n-        });\n+        tCal = sails.moment(new Date(chat.created_at.toString()));","path":"api/controllers/ChatController.js","position":48,"original_position":48,"commit_id":"5291300b59ac63182e05def9d105f5a56e541ba9","original_commit_id":"5291300b59ac63182e05def9d105f5a56e541ba9","user":{"login":"kyoyadmoon","id":5608945,"avatar_url":"https://avatars.githubusercontent.com/u/5608945?v=3","gravatar_id":"","url":"https://api.github.com/users/kyoyadmoon","html_url":"https://github.com/kyoyadmoon","followers_url":"https://api.github.com/users/kyoyadmoon/followers","following_url":"https://api.github.com/users/kyoyadmoon/following{/other_user}","gists_url":"https://api.github.com/users/kyoyadmoon/gists{/gist_id}","starred_url":"https://api.github.com/users/kyoyadmoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyoyadmoon/subscriptions","organizations_url":"https://api.github.com/users/kyoyadmoon/orgs","repos_url":"https://api.github.com/users/kyoyadmoon/repos","events_url":"https://api.github.com/users/kyoyadmoon/events{/privacy}","received_events_url":"https://api.github.com/users/kyoyadmoon/received_events","type":"User","site_admin":false},"body":"沒有宣告導致error","created_at":"2016-05-12T05:26:12Z","updated_at":"2016-05-12T05:26:12Z","html_url":"https://github.com/trunk-studio/trademuch/pull/560#discussion_r62966562","pull_request_url":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560","_links":{"self":{"href":"https://api.github.com/repos/trunk-studio/trademuch/pulls/comments/62966562"},"html":{"href":"https://github.com/trunk-studio/trademuch/pull/560#discussion_r62966562"},"pull_request":{"href":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560"}}},"pull_request":{"url":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560","id":69629632,"html_url":"https://github.com/trunk-studio/trademuch/pull/560","diff_url":"https://github.com/trunk-studio/trademuch/pull/560.diff","patch_url":"https://github.com/trunk-studio/trademuch/pull/560.patch","issue_url":"https://api.github.com/repos/trunk-studio/trademuch/issues/560","number":560,"state":"closed","locked":false,"title":"update chat side","user":{"login":"kuyen","id":1522808,"avatar_url":"https://avatars.githubusercontent.com/u/1522808?v=3","gravatar_id":"","url":"https://api.github.com/users/kuyen","html_url":"https://github.com/kuyen","followers_url":"https://api.github.com/users/kuyen/followers","following_url":"https://api.github.com/users/kuyen/following{/other_user}","gists_url":"https://api.github.com/users/kuyen/gists{/gist_id}","starred_url":"https://api.github.com/users/kuyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuyen/subscriptions","organizations_url":"https://api.github.com/users/kuyen/orgs","repos_url":"https://api.github.com/users/kuyen/repos","events_url":"https://api.github.com/users/kuyen/events{/privacy}","received_events_url":"https://api.github.com/users/kuyen/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-11T08:00:22Z","updated_at":"2016-05-12T05:26:12Z","closed_at":"2016-05-12T03:50:29Z","merged_at":"2016-05-12T03:50:29Z","merge_commit_sha":"3c1c65d9e6517a09f57d51dddc095f0cba3c47cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560/commits","review_comments_url":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560/comments","review_comment_url":"https://api.github.com/repos/trunk-studio/trademuch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trunk-studio/trademuch/issues/560/comments","statuses_url":"https://api.github.com/repos/trunk-studio/trademuch/statuses/5291300b59ac63182e05def9d105f5a56e541ba9","head":{"label":"kuyen:develop","ref":"develop","sha":"5291300b59ac63182e05def9d105f5a56e541ba9","user":{"login":"kuyen","id":1522808,"avatar_url":"https://avatars.githubusercontent.com/u/1522808?v=3","gravatar_id":"","url":"https://api.github.com/users/kuyen","html_url":"https://github.com/kuyen","followers_url":"https://api.github.com/users/kuyen/followers","following_url":"https://api.github.com/users/kuyen/following{/other_user}","gists_url":"https://api.github.com/users/kuyen/gists{/gist_id}","starred_url":"https://api.github.com/users/kuyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuyen/subscriptions","organizations_url":"https://api.github.com/users/kuyen/orgs","repos_url":"https://api.github.com/users/kuyen/repos","events_url":"https://api.github.com/users/kuyen/events{/privacy}","received_events_url":"https://api.github.com/users/kuyen/received_events","type":"User","site_admin":false},"repo":{"id":47661775,"name":"Trademuch","full_name":"kuyen/Trademuch","owner":{"login":"kuyen","id":1522808,"avatar_url":"https://avatars.githubusercontent.com/u/1522808?v=3","gravatar_id":"","url":"https://api.github.com/users/kuyen","html_url":"https://github.com/kuyen","followers_url":"https://api.github.com/users/kuyen/followers","following_url":"https://api.github.com/users/kuyen/following{/other_user}","gists_url":"https://api.github.com/users/kuyen/gists{/gist_id}","starred_url":"https://api.github.com/users/kuyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuyen/subscriptions","organizations_url":"https://api.github.com/users/kuyen/orgs","repos_url":"https://api.github.com/users/kuyen/repos","events_url":"https://api.github.com/users/kuyen/events{/privacy}","received_events_url":"https://api.github.com/users/kuyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kuyen/Trademuch","description":"","fork":true,"url":"https://api.github.com/repos/kuyen/Trademuch","forks_url":"https://api.github.com/repos/kuyen/Trademuch/forks","keys_url":"https://api.github.com/repos/kuyen/Trademuch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuyen/Trademuch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuyen/Trademuch/teams","hooks_url":"https://api.github.com/repos/kuyen/Trademuch/hooks","issue_events_url":"https://api.github.com/repos/kuyen/Trademuch/issues/events{/number}","events_url":"https://api.github.com/repos/kuyen/Trademuch/events","assignees_url":"https://api.github.com/repos/kuyen/Trademuch/assignees{/user}","branches_url":"https://api.github.com/repos/kuyen/Trademuch/branches{/branch}","tags_url":"https://api.github.com/repos/kuyen/Trademuch/tags","blobs_url":"https://api.github.com/repos/kuyen/Trademuch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuyen/Trademuch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuyen/Trademuch/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuyen/Trademuch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuyen/Trademuch/statuses/{sha}","languages_url":"https://api.github.com/repos/kuyen/Trademuch/languages","stargazers_url":"https://api.github.com/repos/kuyen/Trademuch/stargazers","contributors_url":"https://api.github.com/repos/kuyen/Trademuch/contributors","subscribers_url":"https://api.github.com/repos/kuyen/Trademuch/subscribers","subscription_url":"https://api.github.com/repos/kuyen/Trademuch/subscription","commits_url":"https://api.github.com/repos/kuyen/Trademuch/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuyen/Trademuch/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuyen/Trademuch/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuyen/Trademuch/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuyen/Trademuch/contents/{+path}","compare_url":"https://api.github.com/repos/kuyen/Trademuch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuyen/Trademuch/merges","archive_url":"https://api.github.com/repos/kuyen/Trademuch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuyen/Trademuch/downloads","issues_url":"https://api.github.com/repos/kuyen/Trademuch/issues{/number}","pulls_url":"https://api.github.com/repos/kuyen/Trademuch/pulls{/number}","milestones_url":"https://api.github.com/repos/kuyen/Trademuch/milestones{/number}","notifications_url":"https://api.github.com/repos/kuyen/Trademuch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuyen/Trademuch/labels{/name}","releases_url":"https://api.github.com/repos/kuyen/Trademuch/releases{/id}","deployments_url":"https://api.github.com/repos/kuyen/Trademuch/deployments","created_at":"2015-12-09T01:54:19Z","updated_at":"2016-01-25T03:50:23Z","pushed_at":"2016-05-12T01:45:55Z","git_url":"git://github.com/kuyen/Trademuch.git","ssh_url":"git@github.com:kuyen/Trademuch.git","clone_url":"https://github.com/kuyen/Trademuch.git","svn_url":"https://github.com/kuyen/Trademuch","homepage":null,"size":21105,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"trunk-studio:develop","ref":"develop","sha":"57d952e264cf8c7bbfdf9ff8e1e0d515784e1d14","user":{"login":"trunk-studio","id":12459749,"avatar_url":"https://avatars.githubusercontent.com/u/12459749?v=3","gravatar_id":"","url":"https://api.github.com/users/trunk-studio","html_url":"https://github.com/trunk-studio","followers_url":"https://api.github.com/users/trunk-studio/followers","following_url":"https://api.github.com/users/trunk-studio/following{/other_user}","gists_url":"https://api.github.com/users/trunk-studio/gists{/gist_id}","starred_url":"https://api.github.com/users/trunk-studio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trunk-studio/subscriptions","organizations_url":"https://api.github.com/users/trunk-studio/orgs","repos_url":"https://api.github.com/users/trunk-studio/repos","events_url":"https://api.github.com/users/trunk-studio/events{/privacy}","received_events_url":"https://api.github.com/users/trunk-studio/received_events","type":"Organization","site_admin":false},"repo":{"id":46551565,"name":"trademuch","full_name":"trunk-studio/trademuch","owner":{"login":"trunk-studio","id":12459749,"avatar_url":"https://avatars.githubusercontent.com/u/12459749?v=3","gravatar_id":"","url":"https://api.github.com/users/trunk-studio","html_url":"https://github.com/trunk-studio","followers_url":"https://api.github.com/users/trunk-studio/followers","following_url":"https://api.github.com/users/trunk-studio/following{/other_user}","gists_url":"https://api.github.com/users/trunk-studio/gists{/gist_id}","starred_url":"https://api.github.com/users/trunk-studio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trunk-studio/subscriptions","organizations_url":"https://api.github.com/users/trunk-studio/orgs","repos_url":"https://api.github.com/users/trunk-studio/repos","events_url":"https://api.github.com/users/trunk-studio/events{/privacy}","received_events_url":"https://api.github.com/users/trunk-studio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trunk-studio/trademuch","description":"","fork":true,"url":"https://api.github.com/repos/trunk-studio/trademuch","forks_url":"https://api.github.com/repos/trunk-studio/trademuch/forks","keys_url":"https://api.github.com/repos/trunk-studio/trademuch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trunk-studio/trademuch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trunk-studio/trademuch/teams","hooks_url":"https://api.github.com/repos/trunk-studio/trademuch/hooks","issue_events_url":"https://api.github.com/repos/trunk-studio/trademuch/issues/events{/number}","events_url":"https://api.github.com/repos/trunk-studio/trademuch/events","assignees_url":"https://api.github.com/repos/trunk-studio/trademuch/assignees{/user}","branches_url":"https://api.github.com/repos/trunk-studio/trademuch/branches{/branch}","tags_url":"https://api.github.com/repos/trunk-studio/trademuch/tags","blobs_url":"https://api.github.com/repos/trunk-studio/trademuch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trunk-studio/trademuch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trunk-studio/trademuch/git/refs{/sha}","trees_url":"https://api.github.com/repos/trunk-studio/trademuch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trunk-studio/trademuch/statuses/{sha}","languages_url":"https://api.github.com/repos/trunk-studio/trademuch/languages","stargazers_url":"https://api.github.com/repos/trunk-studio/trademuch/stargazers","contributors_url":"https://api.github.com/repos/trunk-studio/trademuch/contributors","subscribers_url":"https://api.github.com/repos/trunk-studio/trademuch/subscribers","subscription_url":"https://api.github.com/repos/trunk-studio/trademuch/subscription","commits_url":"https://api.github.com/repos/trunk-studio/trademuch/commits{/sha}","git_commits_url":"https://api.github.com/repos/trunk-studio/trademuch/git/commits{/sha}","comments_url":"https://api.github.com/repos/trunk-studio/trademuch/comments{/number}","issue_comment_url":"https://api.github.com/repos/trunk-studio/trademuch/issues/comments{/number}","contents_url":"https://api.github.com/repos/trunk-studio/trademuch/contents/{+path}","compare_url":"https://api.github.com/repos/trunk-studio/trademuch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trunk-studio/trademuch/merges","archive_url":"https://api.github.com/repos/trunk-studio/trademuch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trunk-studio/trademuch/downloads","issues_url":"https://api.github.com/repos/trunk-studio/trademuch/issues{/number}","pulls_url":"https://api.github.com/repos/trunk-studio/trademuch/pulls{/number}","milestones_url":"https://api.github.com/repos/trunk-studio/trademuch/milestones{/number}","notifications_url":"https://api.github.com/repos/trunk-studio/trademuch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trunk-studio/trademuch/labels{/name}","releases_url":"https://api.github.com/repos/trunk-studio/trademuch/releases{/id}","deployments_url":"https://api.github.com/repos/trunk-studio/trademuch/deployments","created_at":"2015-11-20T09:12:18Z","updated_at":"2016-03-07T15:56:37Z","pushed_at":"2016-05-12T03:50:30Z","git_url":"git://github.com/trunk-studio/trademuch.git","ssh_url":"git@github.com:trunk-studio/trademuch.git","clone_url":"https://github.com/trunk-studio/trademuch.git","svn_url":"https://github.com/trunk-studio/trademuch","homepage":null,"size":21108,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":50,"forks":8,"open_issues":50,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560"},"html":{"href":"https://github.com/trunk-studio/trademuch/pull/560"},"issue":{"href":"https://api.github.com/repos/trunk-studio/trademuch/issues/560"},"comments":{"href":"https://api.github.com/repos/trunk-studio/trademuch/issues/560/comments"},"review_comments":{"href":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560/comments"},"review_comment":{"href":"https://api.github.com/repos/trunk-studio/trademuch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trunk-studio/trademuch/pulls/560/commits"},"statuses":{"href":"https://api.github.com/repos/trunk-studio/trademuch/statuses/5291300b59ac63182e05def9d105f5a56e541ba9"}}}}