mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-10-31 07:51:05 +01:00
Fix retrieving log from SQLBacking
This commit is contained in:
parent
960c2291b6
commit
7042c45deb
@ -221,6 +221,7 @@ 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()) {
|
||||||
|
while (rs.next()) {
|
||||||
final String actedUuid = rs.getString("acted_uuid");
|
final String actedUuid = rs.getString("acted_uuid");
|
||||||
LogEntry e = new LogEntry(
|
LogEntry e = new LogEntry(
|
||||||
rs.getLong("time"),
|
rs.getLong("time"),
|
||||||
@ -234,6 +235,7 @@ public class SQLBacking extends AbstractBacking {
|
|||||||
log.add(e);
|
log.add(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user