Browse Source

kamaz fix 3

master
gsd 2 months ago
parent
commit
953e309371
  1. 4
      src/main/java/app/services/db/PermitionService.java

4
src/main/java/app/services/db/PermitionService.java

@ -11,6 +11,8 @@ import org.springframework.stereotype.Service;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.List;
@Service
@ -50,7 +52,7 @@ public class PermitionService {
public int extendPermition(SteamID steamID, Integer amount, String status, Long previousTimestamp) {
return jdbcTemplate.update("UPDATE sm_admins SET amount=amount+?, reg_date = ? WHERE identity LIKE ? AND status LIKE ?",
amount, previousTimestamp, steamID.steam2, status);
amount, Timestamp.from(Instant.ofEpochSecond(previousTimestamp)), steamID.steam2, status);
}
public int addFreeVIP(SteamID steamID, Integer amount) {

Loading…
Cancel
Save