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

@ -86,6 +86,7 @@ func LoadOne(collection LibDataEnum, id string) LibData {
}
func UpdateOne(collection LibDataEnum, set map[string]interface{}, id string) LibData {
fmt.Println(set)
model := models.Model(collection.EnumIndex())
d, code, err := model.GetAccessor().UpdateOne(model.Deserialize(set), id)
if err != nil {

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