mirror of
https://github.com/octoleo/syncthing.git
synced 2025-04-03 08:11:50 +00:00
cmd/ursrv: Skip the duplicate complaints with new index name
This commit is contained in:
parent
689cf2a5ee
commit
78d294f78c
@ -343,7 +343,7 @@ func newDataHandler(db *sql.DB, w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := insertReport(db, rep); err != nil {
|
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
|
// We already have a report today for the same unique ID; drop
|
||||||
// this one without complaining.
|
// this one without complaining.
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user