]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/utils.ts
Add videos list filters
[github/Chocobozzz/PeerTube.git] / server / models / utils.ts
index 49d32c24f95c11c4c9e3bbdba1cef372c68e9e7c..393f8f03631f073e3e159db0cd86121ad9d1fdb5 100644 (file)
@@ -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 ]
 }