From a09c8072a235202494334ca0d026596d66290dc0 Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 26 Sep 2023 19:56:06 +0300 Subject: [PATCH] found alt per ip *.*.*.* 2 --- src/main/java/app/services/db/DetectService.java | 2 +- src/main/java/app/services/db/DiscordAuthService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/app/services/db/DetectService.java b/src/main/java/app/services/db/DetectService.java index 269ba95..4cad13f 100644 --- a/src/main/java/app/services/db/DetectService.java +++ b/src/main/java/app/services/db/DetectService.java @@ -30,7 +30,7 @@ public class DetectService { public List getAccountsPerSteamID(SteamID steamID) { List founded_steamid = new ArrayList<>(); for (Map.Entry stringServerEntry : stats.getServers().entrySet()) { - founded_steamid.addAll(entityManager.createNativeQuery("SELECT * FROM "+stringServerEntry.getValue().getDb()+"."+"`user_connections` WHERE `connect_ip` in (SELECT `connect_ip` FROM " + stringServerEntry.getValue().getDb() + "." +" `user_connections` WHERE `steam_id` LIKE ?1) GROUP BY `steam_id`") + founded_steamid.addAll(entityManager.createNativeQuery("SELECT * FROM "+stringServerEntry.getValue().getDb()+"."+"`user_connections` WHERE `connect_ip` in (SELECT `connect_ip` FROM " + stringServerEntry.getValue().getDb() + "." +" `user_connections` WHERE `steam_id` LIKE ?1 ORDER BY `id` DESC) GROUP BY `steam_id`") .setParameter(1, steamID.steam2) .getResultStream().map(String::valueOf).toList()); } diff --git a/src/main/java/app/services/db/DiscordAuthService.java b/src/main/java/app/services/db/DiscordAuthService.java index b9dcc0c..6476985 100644 --- a/src/main/java/app/services/db/DiscordAuthService.java +++ b/src/main/java/app/services/db/DiscordAuthService.java @@ -60,7 +60,7 @@ public class DiscordAuthService { } public HashMap> getProcessing_accounts() { - HashMap> copy = (HashMap>) Map.copyOf(this.processing_accounts); + HashMap> copy = new HashMap<>(this.processing_accounts); this.processing_accounts.clear(); return copy; }