Update Resource

This commit is contained in:
mr
2024-07-24 14:49:04 +02:00
parent ac2111a365
commit 357d79e68b
8 changed files with 16 additions and 13 deletions

View File

@@ -63,7 +63,7 @@ func (wfa *WorkflowMongoAccessor) UpdateOne(set utils.DBObject, id string) (util
if code, err := wfa.execution(set.(*Workflow), true); err != nil {
return nil, code, err
}
return wfa.GenericUpdateOne(set, id, wfa)
return wfa.GenericUpdateOne(set, id, wfa, &Workflow{})
}
func (wfa *WorkflowMongoAccessor) StoreOne(data utils.DBObject) (utils.DBObject, int, error) {