debug logs

This commit is contained in:
mr
2024-07-29 16:04:09 +02:00
parent 2f6fab2f7b
commit beeac40a10
2 changed files with 2 additions and 1 deletions

View File

@@ -63,10 +63,10 @@ func (wfa *WorkflowMongoAccessor) execution(realData *Workflow, delete bool) (in
}
func (wfa *WorkflowMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) {
fmt.Println(set.Serialize())
if code, err := wfa.execution(set.(*Workflow), true); err != nil {
return nil, code, err
}
fmt.Println(set.Serialize())
return wfa.GenericUpdateOne(set, id, wfa, &Workflow{})
}