Permalink
Browse files

Oops, had to add 24 hours to make the realtime-1day requests pop up o…

…n time.
  • Loading branch information...
1 parent 81f5bef commit ceeb481d9e10ae5671ae739847125c50eed1ecb7 @bensheldon bensheldon committed Jun 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -59,7 +59,7 @@ var replayRequests = new CronJob('00 */5 * * * *', function() {
serviceRequests.on('data', function (serviceRequest) {
serviceRequest = serviceRequest.toObject();
- var when = new Date(serviceRequest.requested_datetime.getTime() + 60*60*1000); // add 1 hour
+ var when = new Date(serviceRequest.requested_datetime.getTime() + 24*60*60*1000); // add 24 hours
var scheduleEmit = new CronJob(when, function(){
io.sockets.emit('serviceRequest', serviceRequest); // emit to socket
}, null, true);

0 comments on commit ceeb481

Please sign in to comment.