Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fixed code
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasGnG committed Sep 30, 2023
1 parent 7ba1c0e commit 51b80fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/efi23a/bot/features/alert/AlertFeature.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ private Document getAlertByName(String name) {
}

private Date getAlertLastReminder(Document document) {
Instant lastReminder = (Instant) document.get("lastReminder");
return lastReminder != null ? Date.from(lastReminder) : null;
Date date = document.getDate("lastReminder");
return date != null ? date : null;
}

private void sendAlert(Document alert) {
Expand Down

0 comments on commit 51b80fd

Please sign in to comment.