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);