From 50e888b0759efbee77cdf2db43c039cdd4f2be6f Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 22 Aug 2025 22:42:32 +0800 Subject: [PATCH] :bug: Fix mark all read will reset the viewed at --- DysonNetwork.Pusher/Notification/PushService.cs | 1 + 1 file changed, 1 insertion(+) 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)); }