diff --git a/models/utils/abstracts.go b/models/utils/abstracts.go index 03fd075..e9ea2de 100644 --- a/models/utils/abstracts.go +++ b/models/utils/abstracts.go @@ -3,6 +3,7 @@ package utils import ( "encoding/json" "errors" + "fmt" "time" "cloud.o-forge.io/core/oc-lib/dbs" @@ -194,6 +195,7 @@ func genericLoadAll[T DBObject](res *mgb.Cursor, code int, err error, f func(DBO if !r.VerifyAuth(wfa.GetPeerID(), wfa.GetGroups()) { continue } + fmt.Println("results", len(results), f(r)) objs = append(objs, f(r)) } return objs, 200, nil