mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-12 05:24:25 +02:00
Fix: audiobook progress emitter emit to all user sockets #145, Fix: save user after progress update
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user