fix(db): Order index threads in descending post time
Technically the last post date should matter more here, but we'll get there.
This commit is contained in:
parent
103a59485f
commit
c5833c02e2
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@ impl Handler<ListThreads> for DbExecutor {
|
|||
use schema::threads::dsl::*;
|
||||
|
||||
let conn = self.0.get()?;
|
||||
let results = threads.load::<Thread>(&conn)?;
|
||||
let results = threads
|
||||
.order(posted.desc())
|
||||
.load::<Thread>(&conn)?;
|
||||
Ok(results)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue