mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-02 21:44:56 +02:00
Update:API endpoint for get all users to use minimal payload
This commit is contained in:
parent
d2e0844493
commit
575a162f8b
3 changed files with 11 additions and 9 deletions
|
@ -339,10 +339,7 @@ class ApiRouter {
|
|||
// Helper Methods
|
||||
//
|
||||
userJsonWithItemProgressDetails(user, hideRootToken = false) {
|
||||
const json = user.toJSONForBrowser()
|
||||
if (json.type === 'root' && hideRootToken) {
|
||||
json.token = ''
|
||||
}
|
||||
const json = user.toJSONForBrowser(hideRootToken)
|
||||
|
||||
json.mediaProgress = json.mediaProgress.map(lip => {
|
||||
const libraryItem = this.db.libraryItems.find(li => li.id === lip.libraryItemId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue