This commit is contained in:
mr 2024-11-28 14:04:58 +01:00
parent e524c865ea
commit 30be88c8ce

View File

@ -3,6 +3,7 @@ package utils
import ( import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt"
"time" "time"
"cloud.o-forge.io/core/oc-lib/dbs" "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()) { if !r.VerifyAuth(wfa.GetPeerID(), wfa.GetGroups()) {
continue continue
} }
fmt.Println("results", len(results), f(r))
objs = append(objs, f(r)) objs = append(objs, f(r))
} }
return objs, 200, nil return objs, 200, nil