p.SetID(uuid.NewString())

This commit is contained in:
mr
2026-02-23 15:50:10 +01:00
parent f28e2c3620
commit e10bb55455

View File

@@ -132,6 +132,7 @@ 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
@@ -186,6 +187,7 @@ 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())
d.BookingsState[p.GetID()] = false
}
return booking