Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/TTX.App/Data/Repositories/PortfolioRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ TimeSpan before
string interval = step.ToTimescaleString();

DateTimeOffset globalEndTime = creators.Max(c =>
c.StreamStatus.IsLive ? now : (c.StreamStatus.EndedAt ?? now));
c.StreamStatus.IsLive ? now : c.StreamStatus.EndedAt);
DateTimeOffset globalStartTime = globalEndTime - before;
Dictionary<int, List<Vote>> result = creators.ToDictionary(
c => c.Id.Value,
Expand Down Expand Up @@ -169,8 +169,7 @@ FROM votes v
if (!creatorLookup.TryGetValue(creatorId, out var creator)) continue;

if (!creator.StreamStatus.IsLive &&
creator.StreamStatus.EndedAt.HasValue &&
bucketTime > creator.StreamStatus.EndedAt.Value.UtcDateTime)
bucketTime > creator.StreamStatus.EndedAt.UtcDateTime)
{
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export default function LatestTransactions(
{transactions.length > 0 && (
<table class="table">
<tbody>
{transactions.map((tx) => {
{[...transactions].sort((a, b) =>
new Date(b.created_at).getTime() -
new Date(a.created_at).getTime()
).map((tx) => {
const href = `/players/${tx.player.slug}`;
return (
<tr
Expand Down
Loading