Update db.js
This commit is contained in:
parent
d0766d5e39
commit
6f6aea9699
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue