{"action":"opened","issue":{"url":"https://api.github.com/repos/waterlock/waterlock/issues/136","repository_url":"https://api.github.com/repos/waterlock/waterlock","labels_url":"https://api.github.com/repos/waterlock/waterlock/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/waterlock/waterlock/issues/136/comments","events_url":"https://api.github.com/repos/waterlock/waterlock/issues/136/events","html_url":"https://github.com/waterlock/waterlock/issues/136","id":167557699,"number":136,"title":"waterlock.User.findOne is not a function","user":{"login":"SuperMedo","id":6803887,"avatar_url":"https://avatars.githubusercontent.com/u/6803887?v=3","gravatar_id":"","url":"https://api.github.com/users/SuperMedo","html_url":"https://github.com/SuperMedo","followers_url":"https://api.github.com/users/SuperMedo/followers","following_url":"https://api.github.com/users/SuperMedo/following{/other_user}","gists_url":"https://api.github.com/users/SuperMedo/gists{/gist_id}","starred_url":"https://api.github.com/users/SuperMedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuperMedo/subscriptions","organizations_url":"https://api.github.com/users/SuperMedo/orgs","repos_url":"https://api.github.com/users/SuperMedo/repos","events_url":"https://api.github.com/users/SuperMedo/events{/privacy}","received_events_url":"https://api.github.com/users/SuperMedo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-26T09:10:35Z","updated_at":"2016-07-26T09:10:35Z","closed_at":null,"body":"This happend after upgrading from sails 0.11.2 to 0.12.3, even rolling back doesn't fix the issue, I deleted the whole node_modules, cleared npm cache and reinstalled everything, yet still experience the problem.\r\n\r\nhere full stack trace:\r\n```\r\n\r\n   waterlock.User.findOne(cri).populate('auth').populate('role')\r\n                     ^\r\n\r\nTypeError: waterlock.User.findOne is not a function\r\n    at Object.findUser (/vagrant/sharpone_app/node_modules/waterlock/lib/engine.js:48:22)\r\n    at GoogleOAuth2.accessTokenResponse [as _tokenCallback] (/vagrant/sharpone_app/node_modules/waterlock-google-auth/lib/controllers/actions/oauth2.js:42:22)\r\n    at /vagrant/sharpone_app/node_modules/waterlock-google-auth/lib/google-oauth2.js:142:17\r\n    at /vagrant/sharpone_app/node_modules/waterlock-google-auth/lib/google-oauth2.js:180:14\r\n    at /vagrant/sharpone_app/node_modules/waterlock-google-auth/lib/google-oauth2.js:225:7\r\n    at /vagrant/sharpone_app/node_modules/sails/node_modules/async/lib/async.js:52:16\r\n    at /vagrant/sharpone_app/node_modules/sails/node_modules/async/lib/async.js:1204:30\r\n    at Request._callback (/vagrant/sharpone_app/node_modules/waterlock-google-auth/node_modules/google-auth-library/lib/transporters.js:106:7)\r\n    at Request.self.callback (/vagrant/sharpone_app/node_modules/waterlock-google-auth/node_modules/google-auth-library/node_modules/request/request.js:198:22)\r\n    at emitTwo (events.js:106:13)\r\n    at Request.emit (events.js:191:7)\r\n    at Request.<anonymous> (/vagrant/sharpone_app/node_modules/waterlock-google-auth/node_modules/google-auth-library/node_modules/request/request.js:1057:14)\r\n    at emitOne (events.js:101:20)\r\n    at Request.emit (events.js:188:7)\r\n    at IncomingMessage.<anonymous> (/vagrant/sharpone_app/node_modules/waterlock-google-auth/node_modules/google-auth-library/node_modules/request/request.js:1003:12)\r\n    at emitNone (events.js:91:20)\r\n    at IncomingMessage.emit (events.js:185:7)\r\n    at endReadableNT (_stream_readable.js:975:12)\r\n    at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n    at process._tickDomainCallback (internal/process/next_tick.js:122:9)\r\n\r\n```"}}
{"actor":{"display_login":"SuperMedo"}}