nil except

This commit is contained in:
mr
2024-08-02 11:17:04 +02:00
parent ed4cb943a8
commit 9da3a7c3e6
2 changed files with 0 additions and 7 deletions

View File

@@ -3,7 +3,6 @@ package mongo
import (
"context"
"errors"
"fmt"
"time"
"cloud.o-forge.io/core/oc-lib/dbs"
@@ -226,7 +225,6 @@ 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", collection_name, targetDBCollection, CollectionMap)
MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
@@ -285,7 +283,6 @@ func (m *MongoDB) Search(filters *dbs.Filters, collection_name string) (*mongo.C
MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
fmt.Println("FILTER", f)
if cursor, err := targetDBCollection.Find(
MngoCtx,
f,