Update flatten object
This commit is contained in:
@@ -15,7 +15,7 @@ type ProcessingResource struct {
|
||||
Arguments []string `bson:"arguments,omitempty" json:"arguments,omitempty"`
|
||||
Environment []map[string]string `bson:"environment,omitempty" json:"environment,omitempty"` // a key/value struct is what ressembles the most a NAME=VALUE struct
|
||||
|
||||
ExecutionRequirements ExecutionRequirementsModel `json:"execution_requirements,omitempty"`
|
||||
ExecutionRequirements *ExecutionRequirementsModel `json:"execution_requirements,omitempty"`
|
||||
|
||||
Price uint `bson:"price,omitempty" json:"price,omitempty"`
|
||||
License string `bson:"license,omitempty" json:"license,omitempty"`
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user