diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts index 206e108c3..30de91e1d 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts | |||
@@ -13,6 +13,8 @@ function getSort (value: string, lastSort: OrderItem = [ 'id', 'ASC' ]): OrderIt | |||
13 | 13 | ||
14 | if (field.toLowerCase() === 'match') { // Search | 14 | if (field.toLowerCase() === 'match') { // Search |
15 | finalField = Sequelize.col('similarity') | 15 | finalField = Sequelize.col('similarity') |
16 | } else if (field === 'videoQuotaUsed') { // Users list | ||
17 | finalField = Sequelize.col('videoQuotaUsed') | ||
16 | } else { | 18 | } else { |
17 | finalField = field | 19 | finalField = field |
18 | } | 20 | } |