use alias name when searching
This commit is contained in:
parent
2f00294ba3
commit
c74857c7e7
|
@ -146,7 +146,11 @@ def get_alias_infos_with_pagination_v2(
|
||||||
|
|
||||||
if query:
|
if query:
|
||||||
q = q.filter(
|
q = q.filter(
|
||||||
or_(Alias.email.ilike(f"%{query}%"), Alias.note.ilike(f"%{query}%"))
|
or_(
|
||||||
|
Alias.email.ilike(f"%{query}%"),
|
||||||
|
Alias.note.ilike(f"%{query}%"),
|
||||||
|
Alias.name.ilike(f"%{query}%"),
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if alias_filter == "enabled":
|
if alias_filter == "enabled":
|
||||||
|
|
Loading…
Reference in a new issue