new respond to send all create change delete different bug fixes

This commit is contained in:
Adrian Zuercher
2025-07-23 09:10:56 +02:00
parent 8be5c80a22
commit c37dd87a37
6 changed files with 78 additions and 58 deletions

View File

@@ -67,9 +67,7 @@ func (d *DBMHandler) Delete(c *gin.Context) {
}
response := json_data.NewResponse()
if payload.Set != nil {
response.Set, err = d.DBM.RemoveDatapoint(payload.Set...)
if err != nil {
r := json_data.NewResponse()

View File

@@ -49,6 +49,7 @@ func (d *DBMHandler) Subscribe(req *json_dataModels.Request, id string) {
Path: dp.Path,
Value: dp.Value,
HasChild: dp.Datapoints != nil,
Rights: dp.ReadWrite.GetRights(),
Driver: sub.Driver,
Drivers: &dp.Drivers,
})