workflow scheduler create booking with a booking execution lot id

This commit is contained in:
mr
2025-02-11 12:13:34 +01:00
parent 019b590b4f
commit 7c57cf34a8
4 changed files with 33 additions and 0 deletions

View File

@@ -125,6 +125,13 @@ func (a *workflowMongoAccessor) StoreOne(data utils.DBObject) (utils.DBObject, i
// CopyOne copies a workflow in the database
func (a *workflowMongoAccessor) CopyOne(data utils.DBObject) (utils.DBObject, int, error) {
wf := data.(*Workflow)
for _, item := range wf.Graph.Items {
_, obj := item.GetResource()
if obj != nil {
obj.ClearEnv()
}
}
return utils.GenericStoreOne(data, a)
}