1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Sort on videoQuotaUsed in backend

This commit is contained in:
Chocobozzz 2019-07-25 11:15:03 +02:00
parent 41b15c8921
commit aa3796bda5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,8 @@ function getSort (value: string, lastSort: OrderItem = [ 'id', 'ASC' ]): OrderIt
if (field.toLowerCase() === 'match') { // Search
finalField = Sequelize.col('similarity')
} else if (field === 'videoQuotaUsed') { // Users list
finalField = Sequelize.col('videoQuotaUsed')
} else {
finalField = field
}