send value for correct table update

This commit is contained in:
Adrian Zuercher
2025-08-06 22:02:18 +02:00
parent 21e4231e24
commit bc2e582203

View File

@@ -349,12 +349,14 @@ func (d *Datapoint) RemoveDatapoint(set json_dataModels.Set) (sets []json_dataMo
Event: OnChange, Event: OnChange,
Uuid: dp.Uuid, Uuid: dp.Uuid,
Path: dp.Path, Path: dp.Path,
Value: dp.Value,
Drivers: &dp.Drivers, Drivers: &dp.Drivers,
}) })
sets = append(sets, json_dataModels.Set{ sets = append(sets, json_dataModels.Set{
Uuid: dp.Uuid, Uuid: dp.Uuid,
Path: dp.Path, Path: dp.Path,
Drivers: &dp.Drivers, Drivers: &dp.Drivers,
Value: dp.Value,
}) })
} else { } else {
s, pubs := removeChildren(dp) s, pubs := removeChildren(dp)