debug logs
This commit is contained in:
parent
2f6fab2f7b
commit
beeac40a10
@ -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 {
|
||||
|
@ -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{})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user