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