mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-27 11:41:36 +00:00
Apply suggestions from code review
Thanks for all the tweaks @advplyr! Co-authored-by: advplyr <67830747+advplyr@users.noreply.github.com>
This commit is contained in:
parent
f64c74519b
commit
adba22cbd6
3 changed files with 3 additions and 34 deletions
|
|
@ -260,10 +260,9 @@ class MiscController {
|
|||
}
|
||||
// GET: api/social
|
||||
async getSocialStats(req, res) {
|
||||
if (this.db.serverSettings.sharedListeningStats == false) {
|
||||
if (!this.db.serverSettings.sharedListeningStats) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
Logger.error(this.db.serverSettings.sharedListeningStats)
|
||||
var filteredUsers = this.db.users.filter(c => c.settings.shareListeningActivity == true)
|
||||
var userData = []
|
||||
for (let i = 0; i < filteredUsers.length; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue