Skip to content

Commit

Permalink
Fix non-persistent notifications showing up after expiring. Closes #901
Browse files Browse the repository at this point in the history
… (#903)
  • Loading branch information
AlexMacocian committed Dec 7, 2024
1 parent 4b03a5a commit f1eb829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Daybreak/Services/Notifications/NotificationStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public NotificationStorage(

public IEnumerable<NotificationDTO> GetPendingNotifications()
{
return this.liteCollection.FindAll(dto => dto.Closed == false && dto.ExpirationTime > DateTimeOffset.Now);
return this.liteCollection.FindAll(dto => dto.Closed == false && dto.ExpirationTime < DateTimeOffset.Now);
}

public IEnumerable<NotificationDTO> GetNotifications()
Expand Down

0 comments on commit f1eb829

Please sign in to comment.