adding inputs output struct based on argo naming for now

This commit is contained in:
mr 2025-02-03 15:33:22 +01:00
parent 14977c7b2c
commit 22d15fe395

View File

@ -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) {
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) {