Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
add mongodb clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
matiu committed Jan 6, 2017
1 parent b4afcd7 commit 06779da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/clean_db.mongodb
@@ -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 }});


0 comments on commit 06779da

Please sign in to comment.