This commit is contained in:
mr 2024-07-19 12:57:25 +02:00
parent d28662d70b
commit 5c44b46bcb

View File

@ -2,13 +2,14 @@ package oclib
import (
"encoding/json"
"fmt"
w "cloud.o-forge.io/core/oc-lib/models/resources/workflow"
"cloud.o-forge.io/core/oc-lib/models/utils"
)
type Workflow struct {
utils.AbstractObject
*utils.AbstractObject
w.AbstractWorkflow
}
@ -28,6 +29,7 @@ func (dma *Workflow) Deserialize(j map[string]interface{}) utils.DBObject {
return nil
}
json.Unmarshal(b, dma)
fmt.Println(j, dma)
return dma
}