Merge pull request #618 from matiu/mongodb-clean
add mongodb clean script
This commit is contained in:
commit
0d16810593
|
@ -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 }});
|
||||
|
||||
|
Loading…
Reference in New Issue