debug model collection add history
This commit is contained in:
		@@ -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()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user