audiobookshelf/server/models
Kevin Gatera e395c2b668
Fix Postgres listening stats regression
Before the new minified listening stats path could return 502 because PlaybackSession.afterFind assumed Sequelize model instances even for raw stats rows, and some payloads could serialize invalid totals. After this hotfix the stats helper returns successfully again, with the current dataset benchmarking at about 124ms for full stats and 101ms for minified stats instead of crashing.
2026-08-02 18:26:19 -04:00
..
ApiKey.js Update jwt secret handling 2025-07-08 16:39:50 -05:00
Author.js add postgres dialect support for homelab migration 2026-08-02 18:19:02 -04:00
Book.js prevent lossy postgres migration edge cases 2026-08-02 18:19:03 -04:00
BookAuthor.js Batch author numBooks updates at scan end via authors_num_books_updated 2026-07-10 17:37:31 +03:00
BookSeries.js Add indexes to MediaProgress and BookSeries models 2026-03-12 16:37:59 -05:00
Collection.js Update controllers to use toOldJSON functions 2025-01-04 15:20:41 -06:00
CollectionBook.js Refactor Collection model/controller to not use old Collection object, remove 2024-12-30 16:54:48 -06:00
CustomMetadataProvider.js Clean out old unused functions, Device updates for replacing DeviceInfo 2024-09-12 16:36:39 -05:00
Device.js Clean out old unused functions, Device updates for replacing DeviceInfo 2024-09-12 16:36:39 -05:00
Feed.js Update feedepisode psc customElement 2025-03-31 17:59:16 -05:00
FeedEpisode.js prettier 2025-04-26 17:46:19 +02:00
Library.js Fix:Server crash deleting library that has playback sessions #3634 2024-11-22 17:20:31 -06:00
LibraryFolder.js Updates to LibraryController to use new Library model 2024-08-24 15:38:15 -05:00
LibraryItem.js add postgres dialect support for homelab migration 2026-08-02 18:19:02 -04:00
MediaItemShare.js Migrate to new library item in scanner 2025-01-05 12:05:01 -06:00
MediaProgress.js fix postgres media progress timestamp update 2026-08-02 18:19:04 -04:00
PlaybackSession.js Fix Postgres listening stats regression 2026-08-02 18:26:19 -04:00
Playlist.js Update controllers to use toOldJSON functions 2025-01-04 15:20:41 -06:00
PlaylistMediaItem.js Fix find all playlist endpoint 2024-12-31 17:11:31 -06:00
Podcast.js Add all minified fields to expanded library item JSON so socket updates remain a strict superset of shelf payloads 2026-07-01 22:30:21 +03:00
PodcastEpisode.js Fix podcast episode track index null in playback session 2025-07-22 14:44:36 -05:00
Series.js guard numeric casts for postgres text fields 2026-08-02 18:19:03 -04:00
Session.js Add: 10 second grace period to access token cycle 2026-01-24 16:57:25 -07:00
Setting.js Remove unused functions, jsdoc updates, auto-formatting 2024-05-28 17:24:02 -05:00
User.js fix postgres oldUserId column casing 2026-08-02 18:19:04 -04:00