From 471e0c9d9b48d958342d948f2cb5c99d9f7f2622 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 3 Dec 2024 10:01:10 +0100 Subject: [PATCH] debug --- models/utils/abstracts.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/models/utils/abstracts.go b/models/utils/abstracts.go index 8f8f0a8..94b6e44 100644 --- a/models/utils/abstracts.go +++ b/models/utils/abstracts.go @@ -212,9 +212,12 @@ func genericLoadAll[T DBObject](res *mgb.Cursor, code int, err error, f func(DBO if err = res.All(mongo.MngoCtx, &results); err != nil { return nil, 404, err } - fmt.Println("results 1", res, results) + + var test []map[string]interface{} + _ = res.All(mongo.MngoCtx, &test) + fmt.Println("results 1", res, results, test, err) for _, r := range results { - fmt.Println("results", r.VerifyAuth(a.GetPeerID(), a.GetGroups())) + fmt.Println("results", r) if !r.VerifyAuth(a.GetPeerID(), a.GetGroups()) { continue }