Fixed bug in creating new datatype

This commit is contained in:
Magnus Åhall 2024-05-30 13:05:42 +02:00
parent a94559ab6c
commit c45724f5d8

View File

@ -73,7 +73,7 @@ func (dp Datapoint) Update() (err error) { // {{{
if dp.ID == 0 {
_, err = service.Db.Conn.Exec(
`INSERT INTO datapoint("group", name, datatype) VALUES($1, $2, $3, $4)`,
`INSERT INTO datapoint("group", name, datatype, nodata_problem_seconds) VALUES($1, $2, $3, $4)`,
dp.Group,
name,
dp.Datatype,