mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Add videos list filters
This commit is contained in:
parent
57c36b277e
commit
d525fc399a
26 changed files with 835 additions and 271 deletions
|
@ -14,7 +14,7 @@ function getSort (value: string, lastSort: string[] = [ 'id', 'ASC' ]) {
|
|||
}
|
||||
|
||||
// Alias
|
||||
if (field.toLowerCase() === 'bestmatch') field = Sequelize.col('similarity')
|
||||
if (field.toLowerCase() === 'match') field = Sequelize.col('similarity')
|
||||
|
||||
return [ [ field, direction ], lastSort ]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue