Skip to content

Commit

Permalink
fix sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 30, 2024
1 parent 7d3d211 commit 5df674b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ SELECT time_bucket('7 day', "insert_time") AS bucket, peer_ip, COUNT(DISTINCT us
query.setParameter(3, untrustedIpAddressGenerateThreshold);
List<Object[]> queryResult = query.getResultList();
for (Object[] arr : queryResult) {
var ipAddr = IPUtil.toIPAddress(((InetAddress) arr[0]).getHostAddress());
var ipAddr = IPUtil.toIPAddress(((InetAddress) arr[1]).getHostAddress());
ipTries.add(ipAddr);
}
// banHistoryRepository
Expand Down

0 comments on commit 5df674b

Please sign in to comment.