From b798f84f446615aa4ccfd253ffb686dcfc507373 Mon Sep 17 00:00:00 2001 From: gsd Date: Mon, 20 Mar 2023 21:15:31 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8F=20=D0=B5=D0=B1=D0=BB=D0=B0=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/app/services/db/FreeVIPService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/app/services/db/FreeVIPService.java b/src/main/java/app/services/db/FreeVIPService.java index b704abb..686c63d 100644 --- a/src/main/java/app/services/db/FreeVIPService.java +++ b/src/main/java/app/services/db/FreeVIPService.java @@ -42,13 +42,13 @@ public class FreeVIPService{ public List getSocial(SteamID steamID) { return entityManager.createNativeQuery("SELECT id, steam3, vk_id, discord_id, date FROM free_vip WHERE steam3 = ?1 ORDER BY `free_vip`.`date` DESC") - .setParameter(1, steamID.steam3) + .setParameter(1, steamID.steam2) .getResultList(); } public Long getLastGivedFreeVIP(SteamID steamID) { return (Long) entityManager.createNativeQuery("SELECT UNIX_TIMESTAMP(`date`) as u_time FROM free_vip WHERE steam3 LIKE ?1 ORDER BY `date` DESC") - .setParameter(1, steamID.steam3) + .setParameter(1, steamID.steam2) .getResultStream().findFirst().orElse(0L); }