Merge pull request #618 from matiu/mongodb-clean

add mongodb clean script
This commit is contained in:
Ivan Socolsky 2017-01-06 13:57:56 -03:00 committed by GitHub
commit 0d16810593
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 }});