mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 01:31:02 +00:00
Add order lost in refactoring
This commit is contained in:
parent
834264ebc6
commit
31156dd482
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ extension AccountRecord {
|
||||||
request(for: Self.hasMany(
|
request(for: Self.hasMany(
|
||||||
StatusRecord.self,
|
StatusRecord.self,
|
||||||
through: Self.statusJoins.filter(AccountStatusJoin.Columns.collection == collection.rawValue),
|
through: Self.statusJoins.filter(AccountStatusJoin.Columns.collection == collection.rawValue),
|
||||||
using: AccountStatusJoin.status)))
|
using: AccountStatusJoin.status)
|
||||||
|
.order(StatusRecord.Columns.createdAt.desc)))
|
||||||
}
|
}
|
||||||
|
|
||||||
init(account: Account) {
|
init(account: Account) {
|
||||||
|
|
Loading…
Reference in a new issue