1
0
mirror of https://github.com/metabolist/metatext synced 2025-01-14 02:46:53 +01:00

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