This commit is contained in:
mr 2024-07-30 08:33:26 +02:00
parent dc30412f2e
commit 50cecc40c4

View File

@ -207,7 +207,7 @@ func (m *MongoDB) StoreOne(obj interface{}, id string, collection_name string) (
bson.Unmarshal(b, &doc)
doc["_id"] = id
targetDBCollection := CollectionMap[collection_name]
fmt.Println("DB", targetDBCollection)
MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()