order alias by creation date

This commit is contained in:
Son NK 2020-03-17 21:47:11 +01:00 committed by Son NK
parent b664b0b17b
commit cb8fa8cba7

View file

@ -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: