mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
order alias by creation date
This commit is contained in:
parent
b664b0b17b
commit
cb8fa8cba7
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ def get_alias_infos_with_pagination(user, page_id=0, query=None) -> [AliasInfo]:
|
|||
db.session.query(Alias)
|
||||
.options(joinedload(Alias.mailbox))
|
||||
.filter(Alias.user_id == user.id)
|
||||
.order_by(Alias.created_at.desc())
|
||||
)
|
||||
|
||||
if query:
|
||||
|
|
Loading…
Reference in a new issue