some
This commit is contained in:
parent
e524c865ea
commit
30be88c8ce
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user