Browse Source

бл

master
gsd 2 years ago
parent
commit
0964adee16
  1. 5
      src/main/java/app/services/db/PermitionService.java

5
src/main/java/app/services/db/PermitionService.java

@ -68,8 +68,9 @@ public class PermitionService {
}
public AdminInfo getAdminInfo(SteamID steamID) {
List<Object[]> result = entityManager.createNativeQuery("SELECT id, vk_id, discord_id, discord_name, steam3, permition FROM bot_admins WHERE steam3 LIKE ?1")
.setParameter(1, steamID.steam3)
//Так слушай меня ваня, ты ебанько ибо перепутал тут steam2 и steam3, d в бд steam3 хотя по факту там 2
List<Object[]> result = entityManager.createNativeQuery("SELECT id, vk_id, discord_id, discord_name, steam3, permition FROM bot_admins WHERE steam3 LIKE ?1")
.setParameter(1, steamID.steam2)
.getResultList();
return result.stream().map(AdminInfo::new).findFirst().orElse(null);
}

Loading…
Cancel
Save