{"action":"created","issue":{"url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate/issues/61","repository_url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate","labels_url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate/issues/61/comments","events_url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate/issues/61/events","html_url":"https://github.com/w3tecch/express-typescript-boilerplate/issues/61","id":300167881,"number":61,"title":"Call service or repository in event dispatcher","user":{"login":"jasonvillalon","id":6803913,"avatar_url":"https://avatars1.githubusercontent.com/u/6803913?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonvillalon","html_url":"https://github.com/jasonvillalon","followers_url":"https://api.github.com/users/jasonvillalon/followers","following_url":"https://api.github.com/users/jasonvillalon/following{/other_user}","gists_url":"https://api.github.com/users/jasonvillalon/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonvillalon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonvillalon/subscriptions","organizations_url":"https://api.github.com/users/jasonvillalon/orgs","repos_url":"https://api.github.com/users/jasonvillalon/repos","events_url":"https://api.github.com/users/jasonvillalon/events{/privacy}","received_events_url":"https://api.github.com/users/jasonvillalon/received_events","type":"User","site_admin":false},"labels":[{"id":595416725,"url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":{"login":"dweber019","id":1021324,"avatar_url":"https://avatars1.githubusercontent.com/u/1021324?v=4","gravatar_id":"","url":"https://api.github.com/users/dweber019","html_url":"https://github.com/dweber019","followers_url":"https://api.github.com/users/dweber019/followers","following_url":"https://api.github.com/users/dweber019/following{/other_user}","gists_url":"https://api.github.com/users/dweber019/gists{/gist_id}","starred_url":"https://api.github.com/users/dweber019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dweber019/subscriptions","organizations_url":"https://api.github.com/users/dweber019/orgs","repos_url":"https://api.github.com/users/dweber019/repos","events_url":"https://api.github.com/users/dweber019/events{/privacy}","received_events_url":"https://api.github.com/users/dweber019/received_events","type":"User","site_admin":false},"assignees":[{"login":"dweber019","id":1021324,"avatar_url":"https://avatars1.githubusercontent.com/u/1021324?v=4","gravatar_id":"","url":"https://api.github.com/users/dweber019","html_url":"https://github.com/dweber019","followers_url":"https://api.github.com/users/dweber019/followers","following_url":"https://api.github.com/users/dweber019/following{/other_user}","gists_url":"https://api.github.com/users/dweber019/gists{/gist_id}","starred_url":"https://api.github.com/users/dweber019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dweber019/subscriptions","organizations_url":"https://api.github.com/users/dweber019/orgs","repos_url":"https://api.github.com/users/dweber019/repos","events_url":"https://api.github.com/users/dweber019/events{/privacy}","received_events_url":"https://api.github.com/users/dweber019/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-26T09:41:32Z","updated_at":"2018-02-27T09:39:47Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nis it encourage to call database queries in event dispatcher? or is there a better way to do it?\r\n\r\nBest Regards,\r\nJason Villalon"},"comment":{"url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate/issues/comments/368809508","html_url":"https://github.com/w3tecch/express-typescript-boilerplate/issues/61#issuecomment-368809508","issue_url":"https://api.github.com/repos/w3tecch/express-typescript-boilerplate/issues/61","id":368809508,"user":{"login":"dweber019","id":1021324,"avatar_url":"https://avatars1.githubusercontent.com/u/1021324?v=4","gravatar_id":"","url":"https://api.github.com/users/dweber019","html_url":"https://github.com/dweber019","followers_url":"https://api.github.com/users/dweber019/followers","following_url":"https://api.github.com/users/dweber019/following{/other_user}","gists_url":"https://api.github.com/users/dweber019/gists{/gist_id}","starred_url":"https://api.github.com/users/dweber019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dweber019/subscriptions","organizations_url":"https://api.github.com/users/dweber019/orgs","repos_url":"https://api.github.com/users/dweber019/repos","events_url":"https://api.github.com/users/dweber019/events{/privacy}","received_events_url":"https://api.github.com/users/dweber019/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T09:39:47Z","updated_at":"2018-02-27T09:39:47Z","author_association":"OWNER","body":"Hi @jasonvillalon \r\n\r\nGenerally it's fine to do db calls in the event dispatcher.\r\nUse Case: Gathering data for email which will be dispatched over the event dispatcher.\r\n\r\nIf you provide your use case, we could give you more help."}}
{"actor":{"display_login":"dweber019"}}