Update UpdateModToolIssue.java

This commit is contained in:
Swirny 2020-06-04 05:18:32 -04:00 committed by Mike
parent 1efa38fefc
commit b958c4dbfe

View File

@ -30,8 +30,7 @@ public class UpdateModToolIssue implements Runnable {
} catch (SQLException e) {
LOGGER.error("Caught SQL exception", e);
}
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE users_settings SET cfh_send = cfh_send + ? WHERE user_id = ?")) {
statement.setInt(1, 1);
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE users_settings SET cfh_send = cfh_send + 1 WHERE user_id = ?")) {
statement.setInt(2, this.issue.senderId);
statement.execute();
} catch (SQLException e) {