From 78d294f78ce7c216b95738b2332a2eb221da68ef Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 23 Jun 2020 14:18:52 +0200 Subject: [PATCH] cmd/ursrv: Skip the duplicate complaints with new index name --- cmd/ursrv/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ursrv/main.go b/cmd/ursrv/main.go index c7c16b583..1c17e6f67 100644 --- a/cmd/ursrv/main.go +++ b/cmd/ursrv/main.go @@ -343,7 +343,7 @@ func newDataHandler(db *sql.DB, w http.ResponseWriter, r *http.Request) { } if err := insertReport(db, rep); err != nil { - if err.Error() == `pq: duplicate key value violates unique constraint "uniqueidindex"` { + if err.Error() == `pq: duplicate key value violates unique constraint "uniqueidjsonindex"` { // We already have a report today for the same unique ID; drop // this one without complaining. return