add mongodb clean script

This commit is contained in:
Matias Alejo Garcia 2017-01-06 13:02:47 -03:00
parent b4afcd7a34
commit 06779dabfe
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
1 changed files with 4 additions and 0 deletions

4
scripts/clean_db.mongodb Normal file
View File

@ -0,0 +1,4 @@
db.email_queue.remove({createdOn: {$lt: Date.now()/1000-86400*10 }});
db.notifications.remove({createdOn: {$lt: Date.now()/1000-86400*10 }});