From c5bdc965429509c2bc94f9473e1f3b7ed90f1723 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 7 Oct 2024 09:54:14 +0200 Subject: [PATCH] debug model collection add history --- dbs/mongo/mongo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dbs/mongo/mongo.go b/dbs/mongo/mongo.go index 127233c..f556897 100644 --- a/dbs/mongo/mongo.go +++ b/dbs/mongo/mongo.go @@ -276,6 +276,7 @@ func (m *MongoDB) LoadOne(id string, collection_name string) (*mongo.SingleResul } filter := bson.M{"_id": id} targetDBCollection := CollectionMap[collection_name] + fmt.Println("collection_name", collection_name) fmt.Println("targetDBCollection", targetDBCollection, CollectionMap) MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second) defer cancel()