mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-17 17:29:37 +00:00
Fix: audiobook progress emitter emit to all user sockets #145, Fix: save user after progress update
This commit is contained in:
parent
c5eafdfa8a
commit
8b31c6555a
7 changed files with 30 additions and 14 deletions
|
|
@ -1,3 +1,4 @@
|
|||
const Logger = require('../Logger')
|
||||
const AudioBookmark = require('./AudioBookmark')
|
||||
|
||||
class AudiobookProgress {
|
||||
|
|
@ -79,6 +80,7 @@ class AudiobookProgress {
|
|||
|
||||
update(payload) {
|
||||
var hasUpdates = false
|
||||
Logger.debug(`[AudiobookProgress] Update called ${JSON.stringify(payload)}`)
|
||||
for (const key in payload) {
|
||||
if (payload[key] !== this[key]) {
|
||||
if (key === 'isRead') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue