This commit is contained in:
mr
2026-04-03 16:37:39 +02:00
parent 913d9b3dfb
commit 316ebc93f9

View File

@@ -3,6 +3,7 @@ package utils
import (
"encoding/json"
"errors"
"fmt"
"os"
"cloud.o-forge.io/core/oc-lib/dbs"
@@ -117,7 +118,7 @@ func ModelGenericUpdateOne(change map[string]interface{}, id string, a Accessor)
}
loaded := r.Serialize(r) // get the loaded object
fmt.Println(change)
for k, v := range change { // apply the changes, with a flatten method
loaded[k] = v
}