From e5c7dbe4cb96b8b3cbe9d2905fbf07d6c9d42686 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 17 Jan 2025 13:48:01 +0100 Subject: [PATCH] light modification --- models/utils/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/utils/common.go b/models/utils/common.go index 48141ec..1a006bf 100644 --- a/models/utils/common.go +++ b/models/utils/common.go @@ -124,7 +124,7 @@ func genericLoadAll[T DBObject](res *mgb.Cursor, code int, err error, onlyDraft if err = res.All(mongo.MngoCtx, &results); err != nil { return nil, 404, err } - fmt.Println("results", results) + fmt.Println("results", results, res) for _, r := range results { if !r.VerifyAuth(a.GetRequest()) || f(r) == nil || (onlyDraft && !r.IsDrafted()) || (!onlyDraft && r.IsDrafted()) { continue