From e28b87ce7b9eb2db94f62d200988332bf4f1c8f6 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 7 Oct 2024 09:32:04 +0200 Subject: [PATCH] debug model collection add history --- 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 48c946a..127233c 100644 --- a/dbs/mongo/mongo.go +++ b/dbs/mongo/mongo.go @@ -3,6 +3,7 @@ package mongo import ( "context" "errors" + "fmt" "slices" "time" @@ -275,7 +276,7 @@ func (m *MongoDB) LoadOne(id string, collection_name string) (*mongo.SingleResul } filter := bson.M{"_id": id} targetDBCollection := CollectionMap[collection_name] - + fmt.Println("targetDBCollection", targetDBCollection, CollectionMap) MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second) defer cancel()