From f5ceaeccf78c251f3b8990941e82b8cc78ec7278 Mon Sep 17 00:00:00 2001 From: gsd Date: Wed, 21 Feb 2024 20:16:17 +0300 Subject: [PATCH] jdbc migrate clean up fix --- src/main/java/app/services/db/PermitionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/app/services/db/PermitionService.java b/src/main/java/app/services/db/PermitionService.java index bbe4b0e..a5cbb4b 100644 --- a/src/main/java/app/services/db/PermitionService.java +++ b/src/main/java/app/services/db/PermitionService.java @@ -21,7 +21,7 @@ public class PermitionService { JdbcTemplate jdbcTemplate; public Permition getPermition(SteamID steamID){ - return jdbcTemplate.query("SELECT id, flags, immunity, status, amount, UNIX_TIMESTAMP(`reg_date`) as utime as u_timestamp FROM sm_admins WHERE `identity` LIKE ?", + return jdbcTemplate.query("SELECT id, flags, immunity, status, amount, UNIX_TIMESTAMP(`reg_date`) as utime FROM sm_admins WHERE `identity` LIKE ?", new Object[]{steamID.steam2}, (rs, n) -> new Permition(rs)) .stream().findFirst().orElse(null);