mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-16 00:11:30 +00:00
Hide favorites in get all users api call.
This commit is contained in:
parent
81201efd44
commit
ac841856df
2 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class UserController {
|
|||
|
||||
const includes = (req.query.include || '').split(',').map((i) => i.trim())
|
||||
|
||||
// Minimal toJSONForBrowser does not include mediaProgress and bookmarks
|
||||
// Minimal toJSONForBrowser does not include mediaProgress, bookmarks and favorites
|
||||
const allUsers = await Database.userModel.findAll()
|
||||
const users = allUsers.map((u) => u.toOldJSONForBrowser(hideRootToken, true))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue