Browse Source

found alt per ip *.*.*.* 2

master
gsd 2 years ago
parent
commit
a09c8072a2
  1. 2
      src/main/java/app/services/db/DetectService.java
  2. 2
      src/main/java/app/services/db/DiscordAuthService.java

2
src/main/java/app/services/db/DetectService.java

@ -30,7 +30,7 @@ public class DetectService {
public List<SteamID> getAccountsPerSteamID(SteamID steamID) { public List<SteamID> getAccountsPerSteamID(SteamID steamID) {
List<String> founded_steamid = new ArrayList<>(); List<String> founded_steamid = new ArrayList<>();
for (Map.Entry<String, Server> stringServerEntry : stats.getServers().entrySet()) { for (Map.Entry<String, Server> 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) .setParameter(1, steamID.steam2)
.getResultStream().map(String::valueOf).toList()); .getResultStream().map(String::valueOf).toList());
} }

2
src/main/java/app/services/db/DiscordAuthService.java

@ -60,7 +60,7 @@ public class DiscordAuthService {
} }
public HashMap<String, List<String>> getProcessing_accounts() { public HashMap<String, List<String>> getProcessing_accounts() {
HashMap<String, List<String>> copy = (HashMap<String, List<String>>) Map.copyOf(this.processing_accounts); HashMap<String, List<String>> copy = new HashMap<>(this.processing_accounts);
this.processing_accounts.clear(); this.processing_accounts.clear();
return copy; return copy;
} }

Loading…
Cancel
Save