From 070f2d063ee86a398724a384542c1d387b2dba42 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 19 Jul 2024 15:20:03 +0200 Subject: [PATCH] deserialize test --- models/utils/abstracts.go | 1 - models/workflow/workflow.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/models/utils/abstracts.go b/models/utils/abstracts.go index ecdf2f7..5f14326 100644 --- a/models/utils/abstracts.go +++ b/models/utils/abstracts.go @@ -61,7 +61,6 @@ func (dma *AbstractAccessor) SetLogger(t DataType) { func (wfa *AbstractAccessor) GenericStoreOne(data DBObject, accessor Accessor) (DBObject, int, error) { data.GenerateID() err := validate.Struct(data) - wfa.Logger.Error().Msg("Could not store " + data.GetName() + " to db. Error: " + err.Error()) if err != nil { return nil, 422, err } diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index a3da99f..08fcf84 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -29,8 +29,8 @@ func (dma *Workflow) Deserialize(j map[string]interface{}) utils.DBObject { return nil } json.Unmarshal(b, dma) - dma.AbstractObject.ObjDeserialize(j) - dma.AbstractWorkflow.ObjDeserialize(j) + //dma.AbstractObject.ObjDeserialize(j) + //dma.AbstractWorkflow.ObjDeserialize(j) fmt.Println(j, dma) return dma }