Sort journal by appearance time (#21)
This commit is contained in:
parent
334710065c
commit
473359c645
@ -242,7 +242,7 @@ type AppDbContext (opts : DbContextOptions<AppDbContext>) =
|
|||||||
member this.JournalByUserId userId : JournalRequest seq =
|
member this.JournalByUserId userId : JournalRequest seq =
|
||||||
upcast this.Journal
|
upcast this.Journal
|
||||||
.Where(fun r -> r.userId = userId && r.lastStatus <> "Answered")
|
.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
|
/// Retrieve a request by its ID and user ID
|
||||||
member this.TryRequestById reqId userId =
|
member this.TryRequestById reqId userId =
|
||||||
|
Loading…
Reference in New Issue
Block a user