simpleanswer.lastchange linked to spaceanswer.state.lastchange but expected ms instead.

made that one independent so simpleanswer should hopefully work again...
This commit is contained in:
smash 2018-02-22 19:41:09 +01:00
parent 19f9bdd65d
commit d2cc89dcef
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ ippoll.on('doneState', function (state) {
spaceanswer.state.open = state;
spaceanswer.state.lastchange = Math.floor(new Date().getTime() / 1000);
simpleanswer.state = state;
simpleanswer.lastchange = spaceanswer.state.lastchange;
// simpleanswer.lastchange = spaceanswer.state.lastchange;
simpleanswer.lastchange = new Date().getTime();
io.sockets.emit('sdata', {data: simpleanswer});
});