[PR #1144] [MERGED] Fix listening sessions count bug #3457

Closed
opened 2026-04-25 00:15:43 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/1144
Author: @austinphilp
Created: 11/12/2022
Status: Merged
Merged: 11/12/2022
Merged by: @advplyr

Base: masterHead: fix-listening-sessions-count-bug


📝 Commits (3)

  • c6dc405 Use total from listening-sessions endpoint to display total sessions
  • eb29545 Cleanup
  • 3ffc481 Fix users latest session computed property

📊 Changes

1 file changed (+7 additions, -7 deletions)

View changed files

📝 client/pages/config/users/_id/index.vue (+7 -7)

📄 Description

Fixes the bug reported here where listening sessions weren't being reported properly on the user details page.

Rather than adding a new field to listening-stats as discussed in the issue, I opted to utilize the total field already given by listening-sessions, necessitating a very minor refactor of how we get the latestSession


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/1144 **Author:** [@austinphilp](https://github.com/austinphilp) **Created:** 11/12/2022 **Status:** ✅ Merged **Merged:** 11/12/2022 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `fix-listening-sessions-count-bug` --- ### 📝 Commits (3) - [`c6dc405`](https://github.com/advplyr/audiobookshelf/commit/c6dc4054be7018af490561455bc514194f282182) Use `total` from listening-sessions endpoint to display total sessions - [`eb29545`](https://github.com/advplyr/audiobookshelf/commit/eb295453fcf47388eb3ed97004c23bd1c2934f45) Cleanup - [`3ffc481`](https://github.com/advplyr/audiobookshelf/commit/3ffc481a540b5312163808955f141b65e28fe84f) Fix users latest session computed property ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `client/pages/config/users/_id/index.vue` (+7 -7) </details> ### 📄 Description Fixes the bug reported [here](https://github.com/advplyr/audiobookshelf/issues/1142) where listening sessions weren't being reported properly on the user details page. Rather than adding a new field to `listening-stats` as discussed in the issue, I opted to utilize the `total` field already given by `listening-sessions`, necessitating a very minor refactor of how we get the `latestSession` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:15:43 +02:00
adam closed this issue 2026-04-25 00:15:43 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3457