From 1ac735cef10e4559010e1d36e4240358b28c5f95 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 17 Mar 2026 10:04:40 +0100 Subject: [PATCH] Stop rebuild id --- models/utils/common.go | 1 - models/workflow_execution/workflow_execution.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/models/utils/common.go b/models/utils/common.go index 300232c..4a0808f 100755 --- a/models/utils/common.go +++ b/models/utils/common.go @@ -32,7 +32,6 @@ func GenericStoreOne(data DBObject, a Accessor) (DBObject, int, error) { if data.GetID() == "" { data.GenerateID() } - data.SetID(data.GetID()) data.StoreDraftDefault() data.UpToDate(a.GetUser(), a.GetPeerID(), true) data.Unsign() diff --git a/models/workflow_execution/workflow_execution.go b/models/workflow_execution/workflow_execution.go index 1e658ee..cb8ac69 100755 --- a/models/workflow_execution/workflow_execution.go +++ b/models/workflow_execution/workflow_execution.go @@ -133,7 +133,6 @@ func (d *WorkflowExecution) Buy(bs pricing.BillingStrategy, executionsID string, purchases = append(purchases, d.buyEach(bs, executionsID, wfID, tools.DATA_RESOURCE, priceds[tools.DATA_RESOURCE])...) d.PurchasesState = map[string]bool{} for _, p := range purchases { - p.SetID(uuid.NewString()) d.PurchasesState[p.GetID()] = false } return purchases @@ -191,7 +190,6 @@ func (d *WorkflowExecution) Book(executionsID string, wfID string, priceds map[t booking = append(booking, d.bookEach(executionsID, wfID, tools.COMPUTE_RESOURCE, priceds[tools.COMPUTE_RESOURCE])...) booking = append(booking, d.bookEach(executionsID, wfID, tools.DATA_RESOURCE, priceds[tools.DATA_RESOURCE])...) for _, p := range booking { - p.SetID(uuid.NewString()) if d.BookingsState == nil { d.BookingsState = map[string]bool{} }