changed the value used as the key in the related map, using the 'node id' was erasing some relations when a a processing is linked to two storages
This commit is contained in:
		@@ -110,13 +110,13 @@ func (w *Workflow) GetByRelatedProcessing(processingID string, g func(item graph
 | 
			
		||||
			_, node = item.GetResource()               // we are looking for the storage as destination
 | 
			
		||||
		}
 | 
			
		||||
		if processingID == nodeID && node != nil { // if the storage is linked to the processing
 | 
			
		||||
			if _, ok := related[processingID]; !ok {
 | 
			
		||||
			if _, ok := related[node.GetID()]; !ok {
 | 
			
		||||
				related[processingID] = Related{}
 | 
			
		||||
			}
 | 
			
		||||
			rel := related[node.GetID()]
 | 
			
		||||
			rel.Node = node
 | 
			
		||||
			rel.Links = append(rel.Links, link)
 | 
			
		||||
			related[processingID] = rel
 | 
			
		||||
			related[node.GetID()] = rel
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return related
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user