diff --git a/DysonNetwork.Pusher/Notification/PushService.cs b/DysonNetwork.Pusher/Notification/PushService.cs index 6986840..0055611 100644 --- a/DysonNetwork.Pusher/Notification/PushService.cs +++ b/DysonNetwork.Pusher/Notification/PushService.cs @@ -208,6 +208,7 @@ public class PushService var now = SystemClock.Instance.GetCurrentInstant(); await _db.Notifications .Where(n => n.AccountId == accountId) + .Where(n => n.ViewedAt == null) .ExecuteUpdateAsync(s => s.SetProperty(n => n.ViewedAt, now)); }