Skip to content

Commit

Permalink
fix: encode queue date fields ordered incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed May 13, 2024
1 parent 0d243a2 commit 75f8745
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public IQueryable<Encode> EncodeQueue([Service] ApplicationDbContext database)
.OrderByDescending(x => x.Status == EncodeStatus.Encoding)
.ThenByDescending(x => x.Status == EncodeStatus.Queued)
.ThenByDescending(x => x.Status == EncodeStatus.Submitted)
.ThenBy(x => x.CompletedAt ?? x.CancelledAt ?? x.FailedAt ?? x.CreatedAt);
.ThenByDescending(x => x.CompletedAt ?? x.CancelledAt ?? x.FailedAt ?? x.CreatedAt);
}
}

0 comments on commit 75f8745

Please sign in to comment.