Browse Source

jdbc migrate clean up fix

master
gsd 1 year ago
parent
commit
f5ceaeccf7
  1. 2
      src/main/java/app/services/db/PermitionService.java

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

Loading…
Cancel
Save