Browse Source

posgres support 9

master
gsd 6 months ago
parent
commit
609c0dedff
  1. 2
      src/main/java/app/services/db/BanService.java

2
src/main/java/app/services/db/BanService.java

@ -90,7 +90,7 @@ public class BanService {
Ban ban = getBan(user.getSteamids());
if (ban != null) return -1 * ban.getId();
jdbcTemplate.update("INSERT INTO light_bans (steam_id, account_id, ban_length, ban_reason, banned_by_id, active, ip, player_name, banned_by) VALUES (?,?,?,?,?,?,?,?,?)",
user.getSteamids().steam2, user.getSteamids().account_id, ban_length, ban_reason, admin.getSteamids().steam2, 1,
user.getSteamids().steam2, user.getSteamids().account_id, ban_length, ban_reason, admin.getSteamids().steam2, true,
user.getPlay_on() != null ? user.getPlay_on().getIp(cryptedCookie) : "",
user.getPlay_on() != null ? user.getPlay_on().getName() : user.getSteam_data().getNickname(),
admin.getSteam_data().getNickname());

Loading…
Cancel
Save