order alias by creation date
This commit is contained in:
parent
6cec75a066
commit
aaf254a26d
|
@ -218,6 +218,7 @@ def get_alias_infos_with_pagination(user, page_id=0, query=None) -> [AliasInfo]:
|
||||||
db.session.query(Alias)
|
db.session.query(Alias)
|
||||||
.options(joinedload(Alias.mailbox))
|
.options(joinedload(Alias.mailbox))
|
||||||
.filter(Alias.user_id == user.id)
|
.filter(Alias.user_id == user.id)
|
||||||
|
.order_by(Alias.created_at.desc())
|
||||||
)
|
)
|
||||||
|
|
||||||
if query:
|
if query:
|
||||||
|
|
Loading…
Reference in a new issue