{"action":"opened","issue":{"url":"https://api.github.com/repos/sunuwars/DJES/issues/34","repository_url":"https://api.github.com/repos/sunuwars/DJES","labels_url":"https://api.github.com/repos/sunuwars/DJES/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/sunuwars/DJES/issues/34/comments","events_url":"https://api.github.com/repos/sunuwars/DJES/issues/34/events","html_url":"https://github.com/sunuwars/DJES/issues/34","id":349446049,"node_id":"MDU6SXNzdWUzNDk0NDYwNDk=","number":34,"title":"runDbBuild","user":{"login":"nic-oz","id":22172882,"node_id":"MDQ6VXNlcjIyMTcyODgy","avatar_url":"https://avatars2.githubusercontent.com/u/22172882?v=4","gravatar_id":"","url":"https://api.github.com/users/nic-oz","html_url":"https://github.com/nic-oz","followers_url":"https://api.github.com/users/nic-oz/followers","following_url":"https://api.github.com/users/nic-oz/following{/other_user}","gists_url":"https://api.github.com/users/nic-oz/gists{/gist_id}","starred_url":"https://api.github.com/users/nic-oz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nic-oz/subscriptions","organizations_url":"https://api.github.com/users/nic-oz/orgs","repos_url":"https://api.github.com/users/nic-oz/repos","events_url":"https://api.github.com/users/nic-oz/events{/privacy}","received_events_url":"https://api.github.com/users/nic-oz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-10T09:41:37Z","updated_at":"2018-08-10T09:41:37Z","closed_at":null,"author_association":"NONE","body":"When running runDbBuild it is good to close the connection in the end and stop it from hanging.  \r\n\r\n```\r\nconst runDbBuild = cb => {\r\ndbConnection.query(sql, (err, res) => {\r\n  if (err) return cb(err);\r\n  // console.log(\"Tables created with result:\", res);\r\n  cb(null, res);\r\n});\r\ndbConnection.end();\r\n};\r\n```"}}
{"actor":{"display_login":"nic-oz"}}