Fix Punishment userid column
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-11-22 19:37:58 +01:00
Ursprung 4b97753167
Commit bb601245f9

Datei anzeigen

@ -47,8 +47,7 @@ public class Punishment {
@Field(keys = {Table.PRIMARY}, autoincrement = true)
private final int punishmentId;
@Field
@Getter
private final int user;
private final int userId;
@Field
@Getter
private final int punisher;
@ -95,6 +94,10 @@ public class Punishment {
}
}
public int getUserId() {
return userId;
}
public boolean isCurrent() {
return isPerma() || getEndTime().after(new Date());
}