From 0964adee1643a998b928bf29eee5fb740da15cc0 Mon Sep 17 00:00:00 2001 From: gsd Date: Thu, 16 Feb 2023 19:31:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B1=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/app/services/db/PermitionService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/app/services/db/PermitionService.java b/src/main/java/app/services/db/PermitionService.java index 444d89e..1bb3165 100644 --- a/src/main/java/app/services/db/PermitionService.java +++ b/src/main/java/app/services/db/PermitionService.java @@ -68,8 +68,9 @@ public class PermitionService { } public AdminInfo getAdminInfo(SteamID steamID) { - List 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 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); }