Permalink
Browse files

remove messages based on isodate

  • Loading branch information...
1 parent ac0454b commit e0ff01dc11663f1356393d814db5b863b75ae96b @zquestz committed Jul 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 simplechat.js
View
@@ -167,7 +167,7 @@ if (Meteor.is_server) {
Users.remove({last_seen: {$lt: (now - 60 * 1000)}});
Users.remove({last_seen: {$gt: (now + 30)}});
Users.remove({last_seen: {$exists: false}});
- Messages.remove({date: {$gt: new Date()}});
+ Messages.remove({date: {$gt: new Date().toISOString()}});
}, 1000);
Meteor.methods({

0 comments on commit e0ff01d

Please sign in to comment.