From a6f2556050793df1ff72cb6b7d7aa2277804515c Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 22 Jul 2024 16:57:54 +0200 Subject: [PATCH] log --- dbs/mongo/mongo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbs/mongo/mongo.go b/dbs/mongo/mongo.go index 1f7a401..cd18b9a 100644 --- a/dbs/mongo/mongo.go +++ b/dbs/mongo/mongo.go @@ -3,6 +3,7 @@ package mongo import ( "context" "errors" + "fmt" "time" "cloud.o-forge.io/core/oc-lib/dbs" @@ -153,7 +154,7 @@ func (m *MongoDB) UpdateOne(set interface{}, id string, collection_name string) targetDBCollection := CollectionMap[collection_name] MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second) defer cancel() - + fmt.Println(doc) _, err := targetDBCollection.UpdateOne(MngoCtx, filter, dbs.InputToBson(doc, true)) if err != nil { m.Logger.Error().Msg("Couldn't update resource: " + err.Error())