mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Fix:Local playback sessions not persisting the last updatedAt value
This commit is contained in:
parent
432e25565e
commit
2093468c92
@ -118,7 +118,9 @@ class PlaybackSession extends Model {
|
|||||||
|
|
||||||
static createFromOld(oldPlaybackSession) {
|
static createFromOld(oldPlaybackSession) {
|
||||||
const playbackSession = this.getFromOld(oldPlaybackSession)
|
const playbackSession = this.getFromOld(oldPlaybackSession)
|
||||||
return this.create(playbackSession)
|
return this.create(playbackSession, {
|
||||||
|
silent: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
static updateFromOld(oldPlaybackSession) {
|
static updateFromOld(oldPlaybackSession) {
|
||||||
@ -126,7 +128,8 @@ class PlaybackSession extends Model {
|
|||||||
return this.update(playbackSession, {
|
return this.update(playbackSession, {
|
||||||
where: {
|
where: {
|
||||||
id: playbackSession.id
|
id: playbackSession.id
|
||||||
}
|
},
|
||||||
|
silent: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user