From 6c8ad05872f54caf28e9f5b42e1e24dc5d69f08a Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 9 Nov 2025 11:01:29 +0800 Subject: [PATCH] :bug: Fix event cal ToDictonary close #6 --- DysonNetwork.Pass/Account/AccountEventService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DysonNetwork.Pass/Account/AccountEventService.cs b/DysonNetwork.Pass/Account/AccountEventService.cs index 06e12a9..7dda20a 100644 --- a/DysonNetwork.Pass/Account/AccountEventService.cs +++ b/DysonNetwork.Pass/Account/AccountEventService.cs @@ -438,7 +438,8 @@ public class AccountEventService( .ToDictionary(g => g.Key, g => g.ToList()); var checkInByDate = checkIn - .ToDictionary(c => c.CreatedAt.InUtc().Date); + .GroupBy(c => c.CreatedAt.InUtc().Date) + .ToDictionary(g => g.Key, g => g.OrderByDescending(c => c.CreatedAt).First()); return dates.Select(date => {