fix sort totalWatchTime

This commit is contained in:
Sylvain Blanc
2023-10-06 13:33:18 +02:00
parent 3090dd5130
commit 73ef9e6001
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]);