mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-09-14 14:57:46 +02:00
Fix retrieving log from SQLBacking
This commit is contained in:
parent
960c2291b6
commit
7042c45deb
@ -221,17 +221,19 @@ public class SQLBacking extends AbstractBacking {
|
|||||||
try (Connection c = provider.getConnection()) {
|
try (Connection c = provider.getConnection()) {
|
||||||
try (PreparedStatement ps = c.prepareStatement(prefix.apply(ACTION_SELECT_ALL))) {
|
try (PreparedStatement ps = c.prepareStatement(prefix.apply(ACTION_SELECT_ALL))) {
|
||||||
try (ResultSet rs = ps.executeQuery()) {
|
try (ResultSet rs = ps.executeQuery()) {
|
||||||
final String actedUuid = rs.getString("acted_uuid");
|
while (rs.next()) {
|
||||||
LogEntry e = new LogEntry(
|
final String actedUuid = rs.getString("acted_uuid");
|
||||||
rs.getLong("time"),
|
LogEntry e = new LogEntry(
|
||||||
UUID.fromString(rs.getString("actor_uuid")),
|
rs.getLong("time"),
|
||||||
rs.getString("actor_name"),
|
UUID.fromString(rs.getString("actor_uuid")),
|
||||||
rs.getString("type").toCharArray()[0],
|
rs.getString("actor_name"),
|
||||||
actedUuid.equals("null") ? null : UUID.fromString(actedUuid),
|
rs.getString("type").toCharArray()[0],
|
||||||
rs.getString("acted_name"),
|
actedUuid.equals("null") ? null : UUID.fromString(actedUuid),
|
||||||
rs.getString("action")
|
rs.getString("acted_name"),
|
||||||
);
|
rs.getString("action")
|
||||||
log.add(e);
|
);
|
||||||
|
log.add(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user