From 2e7cfefb2e34be573c2b5529d1496d4760e1f633 Mon Sep 17 00:00:00 2001 From: Pavel Vesely Date: Wed, 1 Jul 2020 14:23:55 +0200 Subject: [PATCH] Notification Repository Breaking change fix --- Oqtane.Server/Repository/NotificationRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/Repository/NotificationRepository.cs b/Oqtane.Server/Repository/NotificationRepository.cs index 45730d84..43025c3a 100644 --- a/Oqtane.Server/Repository/NotificationRepository.cs +++ b/Oqtane.Server/Repository/NotificationRepository.cs @@ -21,7 +21,7 @@ namespace Oqtane.Repository return _db.Notification .Where(item => item.SiteId == siteId) .Where(item => item.IsDelivered == false) - .Where(item => item.SendOn < System.DateTime.UtcNow) + .Where(item => item.SendOn == null || item.SendOn < System.DateTime.UtcNow) .ToList(); }