This commit is contained in:
mr
2026-04-22 10:55:52 +02:00
parent 94e3ebbdd9
commit da237b1d26

View File

@@ -209,10 +209,12 @@ func GetExtend(obj utils.DBObject, extends map[string][]tools.DataType, cache ma
base := obj.Serialize(obj)
for k, v := range extends {
if base[k+"_id"] == nil || base[k+"_id"] == "" {
fmt.Println(k+"_id", "GET EXTEND")
continue
}
for _, vv := range v {
if cache[vv] != nil && cache[vv][k] != nil {
fmt.Println("FOUND", vv, k, cache[vv][k])
base[k] = cache[vv][k]
continue
}
@@ -224,6 +226,7 @@ func GetExtend(obj utils.DBObject, extends map[string][]tools.DataType, cache ma
cache[vv] = map[string]interface{}{}
}
if cache[vv][k] == nil {
fmt.Println("TTT", vv, k, base[k])
cache[vv][k] = base[k]
}
break