From 24d28fbfeaf714e2e9aa9f701407cb8adedb01aa Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Sat, 21 Apr 2012 12:04:30 +0200 Subject: [PATCH] Make titivate command run faster --- app/command/GameCleanNext.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/command/GameCleanNext.scala b/app/command/GameCleanNext.scala index eaff15d9f6..4c00ca8f31 100644 --- a/app/command/GameCleanNext.scala +++ b/app/command/GameCleanNext.scala @@ -13,7 +13,7 @@ final class GameCleanNext(gameRepo: GameRepo) { val cursor = gameRepo.collection.find( DBObject("next" -> DBObject("$type" -> 3)) ++ - ("updatedAt" $gt (DateTime.now - 1.month)), + ("updatedAt" $gt (DateTime.now - 3.days)), DBObject("next" -> true) ) val exists = (id: String) ⇒ gameRepo.collection.count(