style(backend): formatting pass on GetListeningHistory

This commit is contained in:
2026-07-15 16:15:37 +02:00
parent e5614178c8
commit a59ce99051
@@ -25,11 +25,11 @@ namespace Musify.Application.Tracks
var tracksById = await database.Tracks var tracksById = await database.Tracks
.Where(t => recentTrackIds.Contains(t.Id)) .Where(t => recentTrackIds.Contains(t.Id))
.Select(t => new { t.Id, Track = t, ListensCount = t.ListeningHistories.Count }) .Select(t => new { t.Id, Track = t, ListensCount = t.ListeningHistories.Count } )
.ToDictionaryAsync(t => t.Id, cancellationToken); .ToDictionaryAsync(t => t.Id, cancellationToken);
return recentTrackIds return recentTrackIds
.Select(id => tracksById[id]) .Select(id => tracksById[id] )
.Select(t => TrackApplicationResponse.FromEntity(t.Track, t.ListensCount)); .Select(t => TrackApplicationResponse.FromEntity(t.Track, t.ListensCount));
} }
} }