Skip to content

Commit

Permalink
See #28 Se eliminan las lineas cuando un usuario se va del board y cu…
Browse files Browse the repository at this point in the history
…ando todos los usuarios abandonan un board
  • Loading branch information
glozano committed Aug 11, 2018
1 parent 9c5c04a commit 75a44d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ server.listen(3000, function() {
console.log('Mongo running on '+url);

// Borramos lineas viejas
db.collection("lines").deleteMany({"timestamp" : {$lt : new Date((new Date())-THREE_HOURS)}});
setInterval(function () {
var THREE_HOURS = 3 * 60 * 60 * 1000; /* ms */
db.collection("lines").deleteMany({"timestamp" : {$lt : new Date((new Date())-THREE_HOURS)}});
Expand Down

0 comments on commit 75a44d3

Please sign in to comment.