mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Merge branch 'cfh-info' into 'dev'
Added CFH counter See merge request morningstar/Arcturus-Community!198
This commit is contained in:
commit
906f1318aa
@ -43,5 +43,13 @@ public class InsertModToolIssue implements Runnable {
|
|||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
LOGGER.error("Caught SQL exception", 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 + 1 WHERE user_id = ?")) {
|
||||||
|
statement.setInt(1, this.issue.senderId);
|
||||||
|
statement.execute();
|
||||||
|
} catch (SQLException e) {
|
||||||
|
LOGGER.error("Caught SQL exception", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,8 @@ public class UpdateModToolIssue implements Runnable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE support_tickets SET state = ?, type = ?, mod_id = ?, category = ? WHERE id = ?")) {
|
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection();
|
||||||
|
PreparedStatement statement = connection.prepareStatement("UPDATE support_tickets SET state = ?, type = ?, mod_id = ?, category = ? WHERE id = ?")) {
|
||||||
statement.setInt(1, this.issue.state.getState());
|
statement.setInt(1, this.issue.state.getState());
|
||||||
statement.setInt(2, this.issue.type.getType());
|
statement.setInt(2, this.issue.type.getType());
|
||||||
statement.setInt(3, this.issue.modId);
|
statement.setInt(3, this.issue.modId);
|
||||||
|
Loading…
Reference in New Issue
Block a user