Add order lost in refactoring

This commit is contained in:
Justin Mazzocchi 2020-09-29 23:49:04 -07:00
parent 834264ebc6
commit 31156dd482
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ extension AccountRecord {
request(for: Self.hasMany(
StatusRecord.self,
through: Self.statusJoins.filter(AccountStatusJoin.Columns.collection == collection.rawValue),
using: AccountStatusJoin.status)))
using: AccountStatusJoin.status)
.order(StatusRecord.Columns.createdAt.desc)))
}
init(account: Account) {