debug model collection add history
This commit is contained in:
parent
e28b87ce7b
commit
c5bdc96542
@ -276,6 +276,7 @@ func (m *MongoDB) LoadOne(id string, collection_name string) (*mongo.SingleResul
|
|||||||
}
|
}
|
||||||
filter := bson.M{"_id": id}
|
filter := bson.M{"_id": id}
|
||||||
targetDBCollection := CollectionMap[collection_name]
|
targetDBCollection := CollectionMap[collection_name]
|
||||||
|
fmt.Println("collection_name", collection_name)
|
||||||
fmt.Println("targetDBCollection", targetDBCollection, CollectionMap)
|
fmt.Println("targetDBCollection", targetDBCollection, CollectionMap)
|
||||||
MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
|
MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
Loading…
Reference in New Issue
Block a user