mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Change PlaybackSession createFromOld to use upsert instead of create
This commit is contained in:
parent
22ad16e11b
commit
942bd0859f
@ -117,7 +117,7 @@ class PlaybackSession extends Model {
|
||||
|
||||
static createFromOld(oldPlaybackSession) {
|
||||
const playbackSession = this.getFromOld(oldPlaybackSession)
|
||||
return this.create(playbackSession, {
|
||||
return this.upsert(playbackSession, {
|
||||
silent: true
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user