mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-11 03:49:42 +00:00
Fix for elements with weird collectionnames in mongodb
This commit is contained in:
@@ -6,7 +6,8 @@ var settings = [];
|
|||||||
|
|
||||||
db.getCollectionNames(function(err, docs) {
|
db.getCollectionNames(function(err, docs) {
|
||||||
for(var i = 0; i < docs.length; i++) {
|
for(var i = 0; i < docs.length; i++) {
|
||||||
if(docs[i].indexOf("_settings") == -1) {
|
//console.log(docs[i] == "");
|
||||||
|
if(docs[i].indexOf("_settings") == -1 && docs[i].substring(0,1) != "." && docs[i].substring(docs[i].length - 1, docs[i].length) != ".") {
|
||||||
t(docs[i]);
|
t(docs[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user