diff --git a/Plugins/Mineplex.Core/src/mineplex/core/report/data/ReportRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/report/data/ReportRepository.java index 263f8e7d6..57f553921 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/report/data/ReportRepository.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/report/data/ReportRepository.java @@ -54,7 +54,7 @@ public class ReportRepository private static final String SET_REPORT_MESSAGE = "REPLACE INTO reportReasons (reportId, reporterId, reason, `server`, weight, `time`)" + " VALUES (?, ?, ?, ?, ?, ?);"; - private static final String SET_REPORT_HANDLER = "REPLACE INTO reportHandlers (reportId, handlerId)" + + private static final String INSERT_REPORT_HANDLER = "INSERT IGNORE INTO reportHandlers (reportId, handlerId)" + " VALUES (?, ?);"; private static final String SET_REPORT_RESULT = "REPLACE INTO reportResults (reportId, resultId, reason, closedTime)" + @@ -637,7 +637,7 @@ public class ReportRepository Optional handlerIdOptional = report.getHandlerId(); if (handlerIdOptional.isPresent()) { - PreparedStatement setReportHandlerStatement = connection.prepareStatement(SET_REPORT_HANDLER); + PreparedStatement setReportHandlerStatement = connection.prepareStatement(INSERT_REPORT_HANDLER); setReportHandlerStatement.setLong(1, reportId); // report id setReportHandlerStatement.setInt(2, handlerIdOptional.get()); // handler id setReportHandlerStatement.execute();