bookingstate

This commit is contained in:
mr
2026-03-13 14:32:05 +01:00
parent 2cdf15d722
commit 12ba346427

View File

@@ -191,6 +191,9 @@ func (d *WorkflowExecution) Book(executionsID string, wfID string, priceds map[t
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{}
}
d.BookingsState[p.GetID()] = false
}
return booking