Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: update anomaly (#11605)

p0nycfcd1a277ec2
diff --git a/backend/store/anomaly.go b/backend/store/anomaly.go
index 586cc85a4a..24d957850b 100644
--- a/backend/store/anomaly.go
+++ b/backend/store/anomaly.go
@@ -326,7 +326,7 @@ func updateAnomalyV2(ctx context.Context, tx *Tx, principalUID int, update *upda
UPDATE anomaly
SET ` + strings.Join(set, ", ") + `
FROM instance
- WHERE anomaly.instance_id = instance.id AND anomaly.id = $3
+ WHERE anomaly.instance_id = instance.id AND anomaly.id = $4
RETURNING
anomaly.id,
anomaly.created_ts,