🐛 Fix event cal ToDictonary close #6

This commit is contained in:
2025-11-09 11:01:29 +08:00
parent f5b37e9419
commit 6c8ad05872

View File

@@ -438,7 +438,8 @@ public class AccountEventService(
.ToDictionary(g => g.Key, g => g.ToList()); .ToDictionary(g => g.Key, g => g.ToList());
var checkInByDate = checkIn 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 => return dates.Select(date =>
{ {