mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-09-03 21:14:28 +08:00
refactor: convert file query to lowercase
This commit is contained in:
parent
f28a35be1c
commit
693b319cb4
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ func (fs *FileService) ListFiles(userId int64, fquery *schemas.FileQuery) (*sche
|
|||
}
|
||||
|
||||
if fquery.Query != "" {
|
||||
query = query.Where("name &@~ REGEXP_REPLACE(?, '[.,-_]', ' ', 'g')", fquery.Query)
|
||||
query = query.Where("name &@~ REGEXP_REPLACE(?, '[.,-_]', ' ', 'g')", strings.ToLower(fquery.Query))
|
||||
}
|
||||
|
||||
if fquery.Category != "" {
|
||||
|
|
Loading…
Add table
Reference in a new issue