diff options
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 | } |