Fixed trigger edit regression and bumped to v39

This commit is contained in:
Magnus Åhall 2024-07-24 16:05:30 +02:00
parent 6909b223a7
commit d1599fe2b9
2 changed files with 3 additions and 3 deletions

View File

@ -242,11 +242,11 @@ func DatapointRetrieve(id int, name string) (dp Datapoint, err error) { // {{{
var query string
var param any
if id > 0 {
query = `SELECT *, true AS found FROM datapoint WHERE id = $1`
query = `SELECT id, "group", name, "datatype", comment, last_value, nodata_problem_seconds, nodata_is_problem, true AS found FROM public.datapoint WHERE id = $1`
param = id
dp.ID = id
} else {
query = `SELECT *, true AS found FROM datapoint WHERE name = $1`
query = `SELECT id, "group", name, "datatype", comment, last_value, nodata_problem_seconds, nodata_is_problem, true AS found FROM public.datapoint WHERE name = $1`
param = name
}

View File

@ -29,7 +29,7 @@ import (
"time"
)
const VERSION = "v38"
const VERSION = "v39"
var (
logger *slog.Logger