🐛 Fix event cal ToDictonary close #6
This commit is contained in:
@@ -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 =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user