mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fixed MongoDB collection names.
This commit is contained in:
		
							parent
							
								
									3716572676
								
							
						
					
					
						commit
						223ccedb91
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								db.js
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								db.js
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -60,7 +60,7 @@ module.exports.CreateDB = function (parent) {
 | 
			
		|||
        });
 | 
			
		||||
 | 
			
		||||
        // Setup MongoDB events collection and indexes
 | 
			
		||||
        obj.eventsfile = db.collection(dbcollection + '-events');                               // Collection containing all events
 | 
			
		||||
        obj.eventsfile = db.collection('events');                               // Collection containing all events
 | 
			
		||||
        obj.eventsfile.getIndexes(function (err, indexes) {
 | 
			
		||||
            // Check if we need to reset indexes
 | 
			
		||||
            var indexesByName = {}, indexCount = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -82,7 +82,7 @@ module.exports.CreateDB = function (parent) {
 | 
			
		|||
        });
 | 
			
		||||
 | 
			
		||||
        // Setup MongoDB power events collection and indexes
 | 
			
		||||
        obj.powerfile = db.collection(dbcollection + '-power');                                 // Collection containing all power events
 | 
			
		||||
        obj.powerfile = db.collection('power');                                 // Collection containing all power events
 | 
			
		||||
        obj.powerfile.getIndexes(function (err, indexes) {
 | 
			
		||||
            // Check if we need to reset indexes
 | 
			
		||||
            var indexesByName = {}, indexCount = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue