debug
This commit is contained in:
parent
2924ccd23b
commit
471e0c9d9b
@ -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 {
|
if err = res.All(mongo.MngoCtx, &results); err != nil {
|
||||||
return nil, 404, err
|
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 {
|
for _, r := range results {
|
||||||
fmt.Println("results", r.VerifyAuth(a.GetPeerID(), a.GetGroups()))
|
fmt.Println("results", r)
|
||||||
if !r.VerifyAuth(a.GetPeerID(), a.GetGroups()) {
|
if !r.VerifyAuth(a.GetPeerID(), a.GetGroups()) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user