{"action":"created","issue":{"url":"https://api.github.com/repos/nielsgl/sequelize-paper-trail/issues/12","repository_url":"https://api.github.com/repos/nielsgl/sequelize-paper-trail","labels_url":"https://api.github.com/repos/nielsgl/sequelize-paper-trail/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/nielsgl/sequelize-paper-trail/issues/12/comments","events_url":"https://api.github.com/repos/nielsgl/sequelize-paper-trail/issues/12/events","html_url":"https://github.com/nielsgl/sequelize-paper-trail/issues/12","id":210262143,"number":12,"title":"TypeError: Cannot read property 'current_user_request' of undefined","user":{"login":"randallmeeker","id":2538537,"avatar_url":"https://avatars0.githubusercontent.com/u/2538537?v=3","gravatar_id":"","url":"https://api.github.com/users/randallmeeker","html_url":"https://github.com/randallmeeker","followers_url":"https://api.github.com/users/randallmeeker/followers","following_url":"https://api.github.com/users/randallmeeker/following{/other_user}","gists_url":"https://api.github.com/users/randallmeeker/gists{/gist_id}","starred_url":"https://api.github.com/users/randallmeeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randallmeeker/subscriptions","organizations_url":"https://api.github.com/users/randallmeeker/orgs","repos_url":"https://api.github.com/users/randallmeeker/repos","events_url":"https://api.github.com/users/randallmeeker/events{/privacy}","received_events_url":"https://api.github.com/users/randallmeeker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-25T21:08:37Z","updated_at":"2017-07-11T17:19:02Z","closed_at":"2017-02-26T23:37:41Z","body":"Seeing this error when attempting to use this.\r\n\r\nThe problem is probably with my setup as I'm using migrations and I'm not sure if I have my tables setup correctly. \r\n\r\nI used the migration file found in the repo and also added a `revision: integer` column to the table I want to use paper trail on.\r\n\r\nfull error \r\n```\r\n{ TypeError: Cannot read property 'current_user_request' of undefined\r\n    at Model.afterHook (/Users/randallmeeker/Projects/eventcontrol/node_modules/sequelize-paper-trail/lib/index.js:244:32)\r\n    at /Users/randallmeeker/Projects/eventcontrol/node_modules/sequelize/lib/hooks.js:142:19\r\n    at bound (domain.js:280:14)\r\n    at runBound (domain.js:293:12)\r\n    at tryCatcher (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Object.gotValue (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/reduce.js:155:18)\r\n    at Object.gotAccum (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/reduce.js:144:25)\r\n    at bound (domain.js:280:14)\r\n    at Object.runBound (domain.js:293:12)\r\n    at Object.tryCatcher (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/promise.js:510:31)\r\n    at Promise._settlePromise (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/promise.js:567:18)\r\n    at Promise._settlePromiseCtx (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/promise.js:604:10)\r\n    at Async._drainQueue (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/async.js:138:12)\r\n    at Async._drainQueues (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/async.js:143:10)\r\n    at Immediate.Async.drainQueues (/Users/randallmeeker/Projects/eventcontrol/node_modules/bluebird/js/release/async.js:17:14)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nielsgl/sequelize-paper-trail/issues/comments/314513010","html_url":"https://github.com/nielsgl/sequelize-paper-trail/issues/12#issuecomment-314513010","issue_url":"https://api.github.com/repos/nielsgl/sequelize-paper-trail/issues/12","id":314513010,"user":{"login":"eric-radiant","id":29167871,"avatar_url":"https://avatars3.githubusercontent.com/u/29167871?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-radiant","html_url":"https://github.com/eric-radiant","followers_url":"https://api.github.com/users/eric-radiant/followers","following_url":"https://api.github.com/users/eric-radiant/following{/other_user}","gists_url":"https://api.github.com/users/eric-radiant/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-radiant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-radiant/subscriptions","organizations_url":"https://api.github.com/users/eric-radiant/orgs","repos_url":"https://api.github.com/users/eric-radiant/repos","events_url":"https://api.github.com/users/eric-radiant/events{/privacy}","received_events_url":"https://api.github.com/users/eric-radiant/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T17:19:02Z","updated_at":"2017-07-11T17:19:02Z","body":"@randallmeeker what was the issue, I am seeing the same thing."}}
{"actor":{"display_login":"eric-radiant"}}