{"action":"created","issue":{"url":"https://api.github.com/repos/smart-facility/cognicity-server/issues/20","labels_url":"https://api.github.com/repos/smart-facility/cognicity-server/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/smart-facility/cognicity-server/issues/20/comments","events_url":"https://api.github.com/repos/smart-facility/cognicity-server/issues/20/events","html_url":"https://github.com/smart-facility/cognicity-server/issues/20","id":111322841,"number":20,"title":"getHistoricalCountByArea test fails in newer node versions","user":{"login":"matthewberryman","id":2288238,"avatar_url":"https://avatars.githubusercontent.com/u/2288238?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewberryman","html_url":"https://github.com/matthewberryman","followers_url":"https://api.github.com/users/matthewberryman/followers","following_url":"https://api.github.com/users/matthewberryman/following{/other_user}","gists_url":"https://api.github.com/users/matthewberryman/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewberryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewberryman/subscriptions","organizations_url":"https://api.github.com/users/matthewberryman/orgs","repos_url":"https://api.github.com/users/matthewberryman/repos","events_url":"https://api.github.com/users/matthewberryman/events{/privacy}","received_events_url":"https://api.github.com/users/matthewberryman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"benatwork99","id":970507,"avatar_url":"https://avatars.githubusercontent.com/u/970507?v=3","gravatar_id":"","url":"https://api.github.com/users/benatwork99","html_url":"https://github.com/benatwork99","followers_url":"https://api.github.com/users/benatwork99/followers","following_url":"https://api.github.com/users/benatwork99/following{/other_user}","gists_url":"https://api.github.com/users/benatwork99/gists{/gist_id}","starred_url":"https://api.github.com/users/benatwork99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benatwork99/subscriptions","organizations_url":"https://api.github.com/users/benatwork99/orgs","repos_url":"https://api.github.com/users/benatwork99/repos","events_url":"https://api.github.com/users/benatwork99/events{/privacy}","received_events_url":"https://api.github.com/users/benatwork99/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/smart-facility/cognicity-server/milestones/1","html_url":"https://github.com/smart-facility/cognicity-server/milestones/2.0.x","labels_url":"https://api.github.com/repos/smart-facility/cognicity-server/milestones/1/labels","id":1382513,"number":1,"title":"2.0.x","description":"For beta release of 2.0.x","creator":{"login":"matthewberryman","id":2288238,"avatar_url":"https://avatars.githubusercontent.com/u/2288238?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewberryman","html_url":"https://github.com/matthewberryman","followers_url":"https://api.github.com/users/matthewberryman/followers","following_url":"https://api.github.com/users/matthewberryman/following{/other_user}","gists_url":"https://api.github.com/users/matthewberryman/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewberryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewberryman/subscriptions","organizations_url":"https://api.github.com/users/matthewberryman/orgs","repos_url":"https://api.github.com/users/matthewberryman/repos","events_url":"https://api.github.com/users/matthewberryman/events{/privacy}","received_events_url":"https://api.github.com/users/matthewberryman/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2015-10-29T00:59:59Z","updated_at":"2015-11-23T01:14:19Z","due_on":"2015-11-30T13:00:00Z","closed_at":null},"comments":14,"created_at":"2015-10-14T04:43:16Z","updated_at":"2015-11-23T01:19:30Z","closed_at":"2015-11-23T01:14:19Z","body":"## Description\r\nThis is with node v4.1.2 (latest available with [homebrew](http://brew.sh) `brew update && brew install node`) but I suspect also common to newer io.js-derived node.js versions across platforms that care about properties being read only. I suspect [strict mode](https://msdn.microsoft.com/en-us/library/br230269%28v=vs.94%29.aspx?f=255&MSPPError=-2147217396) is enable now by default and that is throwing the error because of the way those variables are defined.\r\n\r\n## Output of npm test \r\n52 passing (883ms)\r\n 1 failing\r\n\r\n 1) getHistoricalCountByArea validation should call the database if parameters are valid:\r\n     TypeError: Cannot assign to read only property 'start_time' of ale\r\n      at chainQueries ([CognicityServer.js:433](https://github.com/smart-facility/cognicity-server/blob/master/CognicityServer.js#L433):21)\r\n      at Object.server.getCountByArea ([test/testCognicityServer.js:631](https://github.com/smart-facility/cognicity-server/blob/master/test/testCognicityServer.js#L631):4)\r\n      at Object.CognicityServer.getHistoricalCountByArea ([CognicityServer.js:452](https://github.com/smart-facility/cognicity-server/blob/master/CognicityServer.js#L452):8)\r\n      at Context.<anonymous> ([test/testCognicityServer.js:642](https://github.com/smart-facility/cognicity-server/blob/master/test/testCognicityServer.js#L642):10)"},"comment":{"url":"https://api.github.com/repos/smart-facility/cognicity-server/issues/comments/158825157","html_url":"https://github.com/smart-facility/cognicity-server/issues/20#issuecomment-158825157","issue_url":"https://api.github.com/repos/smart-facility/cognicity-server/issues/20","id":158825157,"user":{"login":"benatwork99","id":970507,"avatar_url":"https://avatars.githubusercontent.com/u/970507?v=3","gravatar_id":"","url":"https://api.github.com/users/benatwork99","html_url":"https://github.com/benatwork99","followers_url":"https://api.github.com/users/benatwork99/followers","following_url":"https://api.github.com/users/benatwork99/following{/other_user}","gists_url":"https://api.github.com/users/benatwork99/gists{/gist_id}","starred_url":"https://api.github.com/users/benatwork99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benatwork99/subscriptions","organizations_url":"https://api.github.com/users/benatwork99/orgs","repos_url":"https://api.github.com/users/benatwork99/repos","events_url":"https://api.github.com/users/benatwork99/events{/privacy}","received_events_url":"https://api.github.com/users/benatwork99/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T01:19:30Z","updated_at":"2015-11-23T01:19:30Z","body":"FYI I have not fixed on master yet am about to do that now."}}