From 694957a4834edcba7021c76cd64ce10a65caeccb Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 19 Jul 2024 09:41:13 +0200 Subject: [PATCH] validator err test --- models/resources/workflow/workflow_mongo_accessor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/resources/workflow/workflow_mongo_accessor.go b/models/resources/workflow/workflow_mongo_accessor.go index 7689353..51bd318 100644 --- a/models/resources/workflow/workflow_mongo_accessor.go +++ b/models/resources/workflow/workflow_mongo_accessor.go @@ -1,6 +1,8 @@ package oclib import ( + "fmt" + "cloud.o-forge.io/core/oc-lib/dbs/mongo" "cloud.o-forge.io/core/oc-lib/models/utils" ) @@ -19,6 +21,7 @@ func (wfa *WorkflowMongoAccessor) UpdateOne(set map[string]interface{}, id strin func (wfa *WorkflowMongoAccessor) StoreOne(data utils.DBObject) (utils.DBObject, error) { err := utils.Validate.Struct(data) + fmt.Println(err) if err != nil { return nil, err }