From 609c0dedff1c2bf69c463d625b33a2ced8f143dc Mon Sep 17 00:00:00 2001 From: gsd Date: Mon, 23 Sep 2024 15:53:52 +0300 Subject: [PATCH] posgres support 9 --- src/main/java/app/services/db/BanService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/app/services/db/BanService.java b/src/main/java/app/services/db/BanService.java index aacc812..24fe79e 100644 --- a/src/main/java/app/services/db/BanService.java +++ b/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());