From e7a71188a3b52a687007662230bf94da0c3c4715 Mon Sep 17 00:00:00 2001 From: pb Date: Fri, 8 Aug 2025 16:05:36 +0200 Subject: [PATCH] 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 --- models/workflow/workflow.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index 880d720..5f23b21 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -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