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 74a261d commit 7043dac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ SELECT time_bucket('7 day', "insert_time") AS bucket, peer_ip, COUNT(DISTINCT us
var query = entityManager.createNativeQuery("""
SELECT bucket, peer_ip, count
FROM untrustip_agg
WHERE bucket >= ? AND bucket <= ? AND app_count >= ?
WHERE bucket >= ? AND bucket <= ? AND count >= ?
ORDER BY untrust_count DESC;
""");
query.setParameter(1, new Timestamp(System.currentTimeMillis() - untrustedIpAddressGenerateOffset));
Expand Down

0 comments on commit 7043dac

Please sign in to comment.