aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/moncheck/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/moncheck/main.go b/cmd/moncheck/main.go
index 766aa37..bea8e77 100644
--- a/cmd/moncheck/main.go
+++ b/cmd/moncheck/main.go
@@ -167,7 +167,7 @@ where check_id = $1`, id, &states, &msg, states.ToOK()); err != nil {
continue
}
if notify {
- if _, err := tx.Exec("insert into notifications(check_id, states, output) values ($1, $2, $3);", &id, &states, &msg); err != nil {
+ if _, err := tx.Exec("insert into notifications(check_id, states, output, mapping_id) values ($1, $2, $3, $4);", &id, &states, &msg, &mapId); err != nil {
log.Printf("[%d] could not create notification for '%d': %s", thread, id, err)
tx.Rollback()
continue