mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	fix createmesh with email as userid #6596
This commit is contained in:
		
							parent
							
								
									22fc95926a
								
							
						
					
					
						commit
						a1854fa074
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2404,6 +2404,10 @@ function CreateMeshCentralServer(config, args) {
 | 
			
		|||
                storeEvent.links = Object.assign({}, storeEvent.links);
 | 
			
		||||
                for (var i in storeEvent.links) { var ue = obj.common.escapeFieldName(i); if (ue !== i) { storeEvent.links[ue] = storeEvent.links[i]; delete storeEvent.links[i]; } }
 | 
			
		||||
            }
 | 
			
		||||
            if (storeEvent.mesh) {
 | 
			
		||||
                // Escape "mesh" names that may have "." and/or "$"
 | 
			
		||||
                storeEvent.mesh = obj.common.escapeLinksFieldNameEx(storeEvent.mesh);
 | 
			
		||||
            }
 | 
			
		||||
            storeEvent.ids = ids;
 | 
			
		||||
            obj.db.StoreEvent(storeEvent);
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue