Update flatten object

This commit is contained in:
mr
2024-07-23 08:40:24 +02:00
parent a6f2556050
commit 0c825b65b0
3 changed files with 13 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ func (wfa *WorkflowResourceMongoAccessor) CopyOne(data utils.DBObject) (utils.DB
return wfa.GenericStoreOne(data, wfa)
} else {
data.(*WorkflowResource).UUID = res.GetID()
return wfa.GenericUpdateOne(data.Serialize(), res.GetID(), wfa)
return wfa.GenericUpdateOne(data, res.GetID(), wfa)
}
}