Sort journal by appearance time (#21)

This commit is contained in:
Daniel J. Summers 2018-08-21 20:44:39 -05:00
parent 334710065c
commit 473359c645

View File

@ -242,7 +242,7 @@ type AppDbContext (opts : DbContextOptions<AppDbContext>) =
member this.JournalByUserId userId : JournalRequest seq =
upcast this.Journal
.Where(fun r -> r.userId = userId && r.lastStatus <> "Answered")
.OrderBy(fun r -> r.asOf)
.OrderBy(fun r -> r.showAfter)
/// Retrieve a request by its ID and user ID
member this.TryRequestById reqId userId =