add dbm new model and fixed json_data

This commit is contained in:
Adrian Zürcher
2025-05-12 17:12:25 +02:00
parent 5ee97416dd
commit 836a69f914
14 changed files with 260 additions and 167 deletions

View File

@@ -14,7 +14,7 @@ func (d *DBMHandler) Set(req *json_dataModels.Request) {
defer d.RUnlock()
for _, set := range req.Set {
for _, dp := range d.DB.QueryDatapoints(1, set.Path) {
for _, dp := range d.DBM.QueryDatapoints(1, set.Uuid, set.Path) {
dp.UpdateValue(d.Conns, set.Value)
}
}