Make titivate command run faster
This commit is contained in:
parent
8d9a0d9ceb
commit
24d28fbfea
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue