Merge pull request #88 from LaSylv/fix-sort-TotalWatchTime

fix sort totalWatchTime
This commit is contained in:
Thegan Govender
2023-10-06 13:49:50 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -9,6 +9,7 @@
/coverage
/backend/backup-data
.vscode
.idea
# production
/build

View File

@@ -281,7 +281,7 @@ function Users() {
return 0;
}
if (orderBy === 'TotalPlays') {
if (orderBy === 'TotalPlays' || orderBy === 'TotalWatchTime') {
let order_a = parseInt(a[orderBy]);
let order_b = parseInt(b[orderBy]);