{"action":"opened","issue":{"url":"https://api.github.com/repos/bocoup/bots/issues/164","repository_url":"https://api.github.com/repos/bocoup/bots","labels_url":"https://api.github.com/repos/bocoup/bots/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/bocoup/bots/issues/164/comments","events_url":"https://api.github.com/repos/bocoup/bots/issues/164/events","html_url":"https://github.com/bocoup/bots/issues/164","id":167892860,"number":164,"title":"Outstanding expertise job failing","user":{"login":"cowboy","id":54051,"avatar_url":"https://avatars.githubusercontent.com/u/54051?v=3","gravatar_id":"","url":"https://api.github.com/users/cowboy","html_url":"https://github.com/cowboy","followers_url":"https://api.github.com/users/cowboy/followers","following_url":"https://api.github.com/users/cowboy/following{/other_user}","gists_url":"https://api.github.com/users/cowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/cowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowboy/subscriptions","organizations_url":"https://api.github.com/users/cowboy/orgs","repos_url":"https://api.github.com/users/cowboy/repos","events_url":"https://api.github.com/users/cowboy/events{/privacy}","received_events_url":"https://api.github.com/users/cowboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T16:06:35Z","updated_at":"2016-07-27T16:06:35Z","closed_at":null,"body":"Just saw the bots fail at noon, error log showed:\r\n\r\n```\r\n  (0, _db.query)('expertise_outstanding_for_all').mapSeries(function (_ref, idx) {\r\n                                                  ^\r\n\r\nTypeError: (0 , _db.query)(...).mapSeries is not a function\r\n    at jobs.js:11:4\r\n    at CronJob.<anonymous> (scheduler.js:11:18)\r\n    at CronJob.fireOnTick (/mnt/19b99445cc41e8dd495a628f5f4334d5e70060cd/node_modules/cron/lib/cron.js:392:22)\r\n    at [object Object].callbackWrapper [as _onTimeout] (/mnt/19b99445cc41e8dd495a628f5f4334d5e70060cd/node_modules/cron/lib/cron.js:435:9)\r\n    at Timer.listOnTimeout (timers.js:92:15)\r\n```\r\n\r\nWe need to make sure the promise returned from `query` is a bluebird promise.\r\n\r\nhttps://github.com/bocoup/bots/blob/fb3139e50783c566e78765d36a0f53092490fb53/src/lib/db.js#L27-L29"}}
{"actor":{"display_login":"cowboy"}}