Commit d2cc89dc authored by smash's avatar smash

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

made that one independent so simpleanswer should hopefully work again...
parent 19f9bdd6
......@@ -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});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment