mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +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) {
 | 
			
		||||
    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]);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user