Stop rebuild id
This commit is contained in:
@@ -32,7 +32,6 @@ func GenericStoreOne(data DBObject, a Accessor) (DBObject, int, error) {
|
|||||||
if data.GetID() == "" {
|
if data.GetID() == "" {
|
||||||
data.GenerateID()
|
data.GenerateID()
|
||||||
}
|
}
|
||||||
data.SetID(data.GetID())
|
|
||||||
data.StoreDraftDefault()
|
data.StoreDraftDefault()
|
||||||
data.UpToDate(a.GetUser(), a.GetPeerID(), true)
|
data.UpToDate(a.GetUser(), a.GetPeerID(), true)
|
||||||
data.Unsign()
|
data.Unsign()
|
||||||
|
|||||||
@@ -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])...)
|
purchases = append(purchases, d.buyEach(bs, executionsID, wfID, tools.DATA_RESOURCE, priceds[tools.DATA_RESOURCE])...)
|
||||||
d.PurchasesState = map[string]bool{}
|
d.PurchasesState = map[string]bool{}
|
||||||
for _, p := range purchases {
|
for _, p := range purchases {
|
||||||
p.SetID(uuid.NewString())
|
|
||||||
d.PurchasesState[p.GetID()] = false
|
d.PurchasesState[p.GetID()] = false
|
||||||
}
|
}
|
||||||
return purchases
|
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.COMPUTE_RESOURCE, priceds[tools.COMPUTE_RESOURCE])...)
|
||||||
booking = append(booking, d.bookEach(executionsID, wfID, tools.DATA_RESOURCE, priceds[tools.DATA_RESOURCE])...)
|
booking = append(booking, d.bookEach(executionsID, wfID, tools.DATA_RESOURCE, priceds[tools.DATA_RESOURCE])...)
|
||||||
for _, p := range booking {
|
for _, p := range booking {
|
||||||
p.SetID(uuid.NewString())
|
|
||||||
if d.BookingsState == nil {
|
if d.BookingsState == nil {
|
||||||
d.BookingsState = map[string]bool{}
|
d.BookingsState = map[string]bool{}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user