mirror of
https://github.com/simple-login/app.git
synced 2025-02-22 23:02:55 +08:00
fix search
This commit is contained in:
parent
59e4dbb6a6
commit
d8cb327b6e
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ def get_alias_infos_with_pagination_v3(
|
|||
Alias.email.ilike(f"%{query}%"),
|
||||
# can't use match() here as it uses to_tsquery that expected a tsquery input
|
||||
# Alias.ts_vector.match(query),
|
||||
Alias.ts_vector.op("@@")(func.plainto_tsquery(query)),
|
||||
Alias.ts_vector.op("@@")(func.plainto_tsquery("english", query)),
|
||||
Alias.name.ilike(f"%{query}%"),
|
||||
Mailbox.email.ilike(f"%{query}%"),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue