diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-20 14:35:18 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:04:05 +0200 |
commit | d525fc399a14a8b16eaad6d4c0bc0a9c4093c3c9 (patch) | |
tree | 4305044c4a97bdf1275b241c63cb0e85151cfb6a /server/models/utils.ts | |
parent | 57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6 (diff) | |
download | PeerTube-d525fc399a14a8b16eaad6d4c0bc0a9c4093c3c9.tar.gz PeerTube-d525fc399a14a8b16eaad6d4c0bc0a9c4093c3c9.tar.zst PeerTube-d525fc399a14a8b16eaad6d4c0bc0a9c4093c3c9.zip |
Add videos list filters
Diffstat (limited to 'server/models/utils.ts')
-rw-r--r-- | server/models/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts index 49d32c24f..393f8f036 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts | |||
@@ -14,7 +14,7 @@ function getSort (value: string, lastSort: string[] = [ 'id', 'ASC' ]) { | |||
14 | } | 14 | } |
15 | 15 | ||
16 | // Alias | 16 | // Alias |
17 | if (field.toLowerCase() === 'bestmatch') field = Sequelize.col('similarity') | 17 | if (field.toLowerCase() === 'match') field = Sequelize.col('similarity') |
18 | 18 | ||
19 | return [ [ field, direction ], lastSort ] | 19 | return [ [ field, direction ], lastSort ] |
20 | } | 20 | } |