Browse Source

missed space 2

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

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

@ -30,7 +30,7 @@ public class DetectService {
public List<SteamID> getAccountsPerSteamID(SteamID steamID) {
List<String> founded_steamid = new ArrayList<>();
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 ORDER BY `id` DESC) 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());
}

Loading…
Cancel
Save