adding inputs output struct based on argo naming for now
This commit is contained in:
parent
14977c7b2c
commit
22d15fe395
@ -43,7 +43,11 @@ func (wfa *workflowExecutionMongoAccessor) DeleteOne(id string) (utils.DBObject,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (wfa *workflowExecutionMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) {
|
func (wfa *workflowExecutionMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) {
|
||||||
return nil, 404, errors.New("not implemented")
|
if set.(*WorkflowExecutions).State == 0 {
|
||||||
|
return nil, 400, errors.New("state is required")
|
||||||
|
}
|
||||||
|
realSet := WorkflowExecutions{State: set.(*WorkflowExecutions).State}
|
||||||
|
return utils.GenericUpdateOne(&realSet, id, wfa, &WorkflowExecutions{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (wfa *workflowExecutionMongoAccessor) StoreOne(data utils.DBObject) (utils.DBObject, int, error) {
|
func (wfa *workflowExecutionMongoAccessor) StoreOne(data utils.DBObject) (utils.DBObject, int, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user