Update personalized api endpoint to new optimal function that only loops through library items once

This commit is contained in:
advplyr 2022-04-24 16:56:30 -05:00
parent 74bf917150
commit e3ae3f7e6a
5 changed files with 328 additions and 4 deletions

View file

@ -91,7 +91,7 @@ export default {
},
async fetchCategories() {
var categories = await this.$axios
.$get(`/api/libraries/${this.currentLibraryId}/personalized?minified=1`)
.$get(`/api/libraries/${this.currentLibraryId}/personalized`)
.then((data) => {
return data
})

View file

@ -61,6 +61,9 @@ export default {
books() {
return this.series ? this.series.books || [] : []
},
addedAt() {
return this.series ? this.series.addedAt : 0
},
seriesBookProgress() {
return this.books
.map((libraryItem) => {