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

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) {