Fixed last updated value on datapoints
This commit is contained in:
parent
7724c742ad
commit
e4dbabfea5
2 changed files with 3 additions and 1 deletions
|
@ -117,6 +117,8 @@ func DatapointAdd[T any](name string, value T) (err error) { // {{{
|
|||
return
|
||||
}
|
||||
|
||||
service.Db.Conn.Exec(`UPDATE datapoint SET last_value = NOW() WHERE name=$1`, name)
|
||||
|
||||
return
|
||||
} // }}}
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -268,7 +268,7 @@ func entryDatapoint(w http.ResponseWriter, r *http.Request, sess *session.T) { /
|
|||
WHERE
|
||||
service=$1 AND
|
||||
prio=$2
|
||||
`,
|
||||
`,
|
||||
(*notificationService).GetType(),
|
||||
(*notificationService).GetPrio(),
|
||||
problemID,
|
||||
|
|
Loading…
Add table
Reference in a new issue