light modification
This commit is contained in:
parent
ed787683f4
commit
f72ceecc19
@ -146,6 +146,7 @@ func GenericSearch[T DBObject](filters *dbs.Filters, search string, defaultFilte
|
|||||||
if filters == nil && search != "" {
|
if filters == nil && search != "" {
|
||||||
filters = defaultFilters
|
filters = defaultFilters
|
||||||
}
|
}
|
||||||
|
fmt.Println("filters", filters, wfa.GetType().String(), search)
|
||||||
res_mongo, code, err := mongo.MONGOService.Search(filters, wfa.GetType().String())
|
res_mongo, code, err := mongo.MONGOService.Search(filters, wfa.GetType().String())
|
||||||
return genericLoadAll[T](res_mongo, code, err, onlyDraft, f, wfa)
|
return genericLoadAll[T](res_mongo, code, err, onlyDraft, f, wfa)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user