Update db.js

This commit is contained in:
Aleksandr Statciuk 2021-09-20 17:10:23 +03:00
parent d0766d5e39
commit 6f6aea9699
1 changed files with 8 additions and 8 deletions

View File

@ -152,8 +152,8 @@ db.channels = {
count() { count() {
return this.get().length return this.get().length
}, },
sortBy(fields) { sortBy(fields, order) {
this.list = utils.sortBy(this.list, fields) this.list = utils.sortBy(this.list, fields, order)
return this return this
} }
@ -173,8 +173,8 @@ db.countries = {
count() { count() {
return this.list.length return this.list.length
}, },
sortBy(fields) { sortBy(fields, order) {
this.list = utils.sortBy(this.list, fields) this.list = utils.sortBy(this.list, fields, order)
return this return this
} }
@ -194,8 +194,8 @@ db.languages = {
count() { count() {
return this.list.length return this.list.length
}, },
sortBy(fields) { sortBy(fields, order) {
this.list = utils.sortBy(this.list, fields) this.list = utils.sortBy(this.list, fields, order)
return this return this
} }
@ -225,8 +225,8 @@ db.playlists = {
except(list = []) { except(list = []) {
return this.list.filter(playlist => !list.includes(playlist.filename)) return this.list.filter(playlist => !list.includes(playlist.filename))
}, },
sortBy(fields) { sortBy(fields, order) {
this.list = utils.sortBy(this.list, fields) this.list = utils.sortBy(this.list, fields, order)
return this return this
}, },