{"action":"created","issue":{"url":"https://api.github.com/repos/doublemarked/loopback-component-model-fragments/issues/1","repository_url":"https://api.github.com/repos/doublemarked/loopback-component-model-fragments","labels_url":"https://api.github.com/repos/doublemarked/loopback-component-model-fragments/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/doublemarked/loopback-component-model-fragments/issues/1/comments","events_url":"https://api.github.com/repos/doublemarked/loopback-component-model-fragments/issues/1/events","html_url":"https://github.com/doublemarked/loopback-component-model-fragments/issues/1","id":172082369,"number":1,"title":"Hooks are called two times","user":{"login":"rflipo-dev","id":9028020,"avatar_url":"https://avatars.githubusercontent.com/u/9028020?v=3","gravatar_id":"","url":"https://api.github.com/users/rflipo-dev","html_url":"https://github.com/rflipo-dev","followers_url":"https://api.github.com/users/rflipo-dev/followers","following_url":"https://api.github.com/users/rflipo-dev/following{/other_user}","gists_url":"https://api.github.com/users/rflipo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/rflipo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rflipo-dev/subscriptions","organizations_url":"https://api.github.com/users/rflipo-dev/orgs","repos_url":"https://api.github.com/users/rflipo-dev/repos","events_url":"https://api.github.com/users/rflipo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/rflipo-dev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-19T08:41:22Z","updated_at":"2016-08-19T09:29:27Z","closed_at":null,"body":"it goes through hooks two times for a single call :\r\n\r\n````\r\nModel.observe('before save', (ctx, next) => {\r\n    console.log('it logs two times');\r\n    next();\r\n  });\r\n````"},"comment":{"url":"https://api.github.com/repos/doublemarked/loopback-component-model-fragments/issues/comments/240972062","html_url":"https://github.com/doublemarked/loopback-component-model-fragments/issues/1#issuecomment-240972062","issue_url":"https://api.github.com/repos/doublemarked/loopback-component-model-fragments/issues/1","id":240972062,"user":{"login":"rflipo-dev","id":9028020,"avatar_url":"https://avatars.githubusercontent.com/u/9028020?v=3","gravatar_id":"","url":"https://api.github.com/users/rflipo-dev","html_url":"https://github.com/rflipo-dev","followers_url":"https://api.github.com/users/rflipo-dev/followers","following_url":"https://api.github.com/users/rflipo-dev/following{/other_user}","gists_url":"https://api.github.com/users/rflipo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/rflipo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rflipo-dev/subscriptions","organizations_url":"https://api.github.com/users/rflipo-dev/orgs","repos_url":"https://api.github.com/users/rflipo-dev/repos","events_url":"https://api.github.com/users/rflipo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/rflipo-dev/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T09:29:27Z","updated_at":"2016-08-19T09:29:27Z","body":"Here it is : (just writing what could possibly do it)\r\n`````\r\n\"loopback\": \"^2.22.0\",\r\n\"loopback-boot\": \"^2.6.5\",\r\n\"babel-cli\": \"^6.11.4\",\r\n\"babel-preset-es2015\": \"^6.9.0\"\r\n`````\r\n\r\nNode 6.2.2"}}
{"actor":{"display_login":"rflipo-dev"}}